testify icon indicating copy to clipboard operation
testify copied to clipboard

Path is not used

Open assertnotnull opened this issue 2 years ago • 2 comments

Describe the bug The path is not used when it is set.

To Reproduce Steps to reproduce the behavior: In the VScode config, change the extension configuration testify.testRunnerPath to ./node_modules/mocha/bin/mocha.js

It still runs the tests with node_modules/.bin/mocha

Expected behavior To run with the said file

Screenshots/GIFs image Platform:

ZorinOS 16.2 [email protected]

Test Framework: [email protected] [email protected] [email protected]

assertnotnull avatar Feb 03 '23 16:02 assertnotnull

Hello!

Is there any reason why using node_modules/.bin/mocha is not good enough?

felixjb avatar Jun 15 '23 09:06 felixjb

Hello!

I'm sorry for taking embarrassingly long to respond. I found the issue.

The problem is the path you used. You need to point the extension to a binary file, not a JavaScript file. If the file is not a valid test runner, the extension uses the default path.

./node_modules/mocha/bin/mocha.js./node_modules/mocha/bin/_mocha

felixjb avatar Apr 17 '24 21:04 felixjb