Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_coverage_active_file() not working with test fixture and testthat::it() function #551

Open
mjfrigaard opened this issue Nov 10, 2023 · 0 comments

Comments

@mjfrigaard
Copy link

Hi there 😄 --I created a small example package that reproduces the issue I'm having.

To summarize: test_active_file() shows the tests are running and passing, but test_coverage_active_file() is showing 0.00%. When I use data not stored in a test fixture, test_coverage_active_file() is showing 100.00%.

Below is a layout of my tests/ folder (in case this helps):

tests
├── testthat
│   ├── _snaps
│   ├── fixtures
│   │   ├── make-test_data.R
│   │   └── test_data.rds <- test fixture causing issue
│   ├── helper.R
│   ├── setup.R
│   ├── test-pivot_term_long.R
│   ├── test-process_text.R <- test causing issue
│   └── test-sep_cols_mult.R
└── testthat.R

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant