jimmymcp / al-test-runner

VS Code Extension to help run AL tests against Business Central container
https://jpearson.blog/al-test-runner-for-visual-studio-code/
MIT License
12 stars 16 forks source link

Copy of code coverage file from wrong path? #145

Open navdotnetreqs opened 6 months ago

navdotnetreqs commented 6 months ago

From the VS Code extension's properties:

Runtime Status Activation Activated by onLanguage:al event: 10ms

Uncaught Errors (15) (0 , alFileHelper_1.getTestFolderPath) is not a function

ENOENT: no such file or directory, copyfile 'c:\Users\j\Documents\AL\Company\tests.altestrunner\codecoverage.json' -> 'C:\Users\j\AppData\Local\Temp\codeCoverage2024-05-08T04-57-14-908Z.json'

ENOENT: no such file or directory, copyfile 'c:\Users\j\Documents\AL\Company\tests.altestrunner\codecoverage.json' -> 'C:\Users\j\AppData\Local\Temp\codeCoverage2024-05-08T04-58-07-325Z.json'

The path I have open in VS Code is: C:\Users\j\Documents\AL\Company\AppTests.alpackages

The setup in config.json is: "codeCoveragePath": ".//.altestrunner//codecoverage.json",

If I put the full path in here, the copy goes ok.

jimmymcp commented 3 weeks ago

Sorry for the slow response.

The codeCoveragePath needs to be relative to the root of the test project folder, although you should just be able to leave that setting blank and have the extension find the code coverage file for itself. I should probably just remove that setting and any confusion that it causes.