Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How to set up TestResults folder #8

Open
leonyu1010 opened this issue Sep 27, 2018 · 1 comment
Open

Question: How to set up TestResults folder #8

leonyu1010 opened this issue Sep 27, 2018 · 1 comment

Comments

@leonyu1010
Copy link

referring to the ResultsDirectory setting in runsettings, i don't see any result file after adding a TestResults folder to the solution directory and successfully running the reference tests e.g. Catch_Testset01 within visual studio 2017 resharper unit test explorer.

.\TestResults

Is it expected to have any test result output files? thank you for your time and help.

@JohnnyHendriks
Copy link
Owner

At this time the Test Adapter for Catch2 itself does not actively make use of this Visual Studio Test Explorer feature. I have seen it used mostly in C# tests. What you can do however is set the working directory for the unit tests to this folder via the <WorkingDirectoryRoot> setting. This will allow you to 'easily' write files to that directory from inside your tests.

It is an interesting notion however to have the Test Adapter for Catch2 optionally write a test report to this directory after each test run (regardless of whether the working directory is set to this folder or not). I will take it under consideration to add this as a feature to the Test Adapter for Catch2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants