Skip to content
New issue

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

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

Already on GitHub? # 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 · 1 comment

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!

@dario-ssm
Copy link

I'm having the same problem, is there any update that could help ?

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

No branches or pull requests

2 participants