Test path results in no tests being executed
See original GitHub issueI’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:
- Created 2 years ago
- Reactions:8
- Comments:12 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I also encountered this issue on 0.4.35, downgrading the extension to version 0.4.34 appears to work for me.
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