Skip to content

Test file: fragile project root detection in test-citation-network.R #199

@seanthimons

Description

@seanthimons

Source: PR #168 review (round 1, item #7)

tests/testthat/test-citation-network.R:4-7 uses dirname(dirname(getwd())) to find the project root, which assumes tests run from tests/testthat/. Running from project root or via devtools::test() may fail. Consider using testthat::test_path() or here::here() for robust path resolution.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions