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.

Test path results in no tests being executed

See original GitHub issue

I’m running The following VSCode under Windows 10.0.19042 Build 19042:

Version: 1.56.2 (system setup)
Commit: 054a9295330880ed74ceaedda236253b4f39a335
Date: 2021-05-12T17:13:13.157Z
Electron: 12.0.4
Chrome: 89.0.4389.114
Node.js: 14.16.0
V8: 8.9.255.24-electron.0
OS: Windows_NT x64 10.0.19042

When I click on “Run”, a command line similar to this is executed: node "c:/Users/path/to/git/repo/node_modules/jest/bin/jest.js" "c://Users//path//to//git//repo//api//__tests__//unit//module/.test/.js" -c "c:/Users/path/to/git/repo/api/jest.config.js" -t "update-elements-stats tests"

The command runs successfully but doesn’t find any tests to run. It looks like the path to the actual test file was originally in windows format and escaped with \, but the \ have been replaced with /. This results in the path used including double // and the filename it’s looking for being module/.test/.js, meaning that the file isn’t found.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:8
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
LewisHogancommented, Jun 2, 2021

I also encountered this issue on 0.4.35, downgrading the extension to version 0.4.34 appears to work for me.

2reactions
firsttriscommented, Jun 3, 2021

i might have found the issue, and tested on my windows machine.

v 0.4.38 should fix this issue, if not please re-open.

thx for reporting

Read more comments on GitHub >

github_iconTop Results From Across the Web

PHPUnit - 'No tests executed' when using configuration file
So the fix is running the vendor's configured phpunit (from the same root ... tests/Test.php <--- Note the uppercase "T" ... returns "No...
Read more >
Test-Path - PowerShell - Microsoft Learn
The Test-Path cmdlet determines whether all elements of the path exist. It returns $True if all elements exist and $False if any are...
Read more >
Running tests through command-line with run-tests.sh - Drupal
To test one class, use for example --class "Drupal\action\Tests\ActionUninstallTest".
Read more >
Testing Your Application - Quarkus
The solution is located in the getting-started-testing directory. ... 0 will result in the use of a random port (assigned by the operating...
Read more >
unittest — Unit testing framework — Python 3.11.1 ...
A test runner is a component which orchestrates the execution of tests and ... or return a special value to indicate the results...
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