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.

pathForResultsFile creates unpredictable subfolder to store results file.

See original GitHub issue

When dotnet-test-explorer.pathForResultsFile is set, the extension does not store the results file within that directory; it creates a randomly-named subdirectory and stores the results file in that. This means that it’s not practical to update the results file outside of the extension.

I’d like to use dotnet watch to automatically run tests whenever the source is modified, but that doesn’t update the codelens or the results in the test view panel. If the results file was placed directly in the specified directory, then it’d be an easy matter to tell dotnet watch to update the same Results.trx file as the extension.

Current Behaviour

The extension creates a subdirectory such as test-explorer-jNsG5F (last six characters are randomly generated by Node.js’s fs.mkdtempSync function). The test results file is stored within this test-explorer subdirectory.

Expected Behaviour

When the user specifies a directory within which to store the results file, the extension should store the Results.trx file directly within that directory, so long as the directory exists.

I’ve got this change made at colinthompson/vscode-dotnet-test-explorer@8be5d24; if you agree with my idea, I’m happy to submit a pull request.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
colinthompsoncommented, Jun 11, 2018

Thanks, that’s probably what I’ll end up doing.

0reactions
colinthompsoncommented, Jun 13, 2018

Looks pretty good overall, thanks for pushing this out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Outlook 365 creating subfolders results in (This computer only)
If it is the moved email account, when you put the account back on outlook, it deleted the old .OST file and created...
Read more >
Create subfolder and FileGeodatabase? - Esri Community
Solved: Hi, I have been trying to figure out why I keep running into this ... database_name) return database # Create folder and...
Read more >
How to output the file to a latest subfolder in Alteryx
Hi, I have monthly subfolders and would like to output the file to the most recent subfolder created. Could you please advise how?...
Read more >
How to do a recursive sub-folder search and return files in a list?
import os from glob import glob result = [y for x in ... In case you need the file size, you can also...
Read more >
Issues creating a new directory and save .tifs to it
lif files, open z-stacks from them, create new subfolders within an output directory based on the name of the z-stack file, separate the...
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