question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unselected Test Suite Being Run

See original GitHub issue

If you have multiple test suites in a project, and one happens to be the substring of another, then the running the substring one will cause both to be picked up. So in the following example (see the screenshot) if I run invoices.json then changelog_header_invoices.json will also be picked up.

image

The steps above should make this straightforward to reproduce. We’ve seen the issue on two MacOS boxes running Big Sur 11.5.1 and Puppetry v3.2.5.

I have a feeling this is related to the fact that jest accepts a regex pattern by default, not a specific filename.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dsheikocommented, Aug 12, 2021

just committed the fix, will be published with the next release.

0reactions
dsheikocommented, Aug 12, 2021

Oh, I got it now. While the export it’s as I explained, but when you run the tests from the app it doesn’t clean the directory - I’m on it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running of unselected test-case · Issue #1571 - GitHub
Hi I regularly catch the problem, which can be reproduced sometimes by this steps to reproduce: Autosave is ON Select test-case in RIDE...
Read more >
When a test case is failed in Test Suite, All other test cases ...
As test cases are dependent on each other in a test suite, if a test case gets failed all of the remaining test...
Read more >
Check 0.15.2: 4 Advanced Features
The unchecked teardown() , if defined, is run after the test case is done. An unchecked teardown() fixture will run even if a...
Read more >
Why pytest deselect all the tests when run with python -m test?
You're using -m which filters which tests to run according to how you mark your tests. You're telling pytest to only run tests...
Read more >
"Run Unit Tests" doesn't ignore projects not selected to build
These projects are not supposed to be built, because they are deselected to build for the project configuration.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found