-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add support for replacement macros in LogFilePath #2
Comments
@jrr, I can confirm that the logger does not currently support writing multiple files in the way you described as desired. I think a supporting change could be made to allow something like MSBuild-style replacement macros in the LogFilePath. (e.g., I think this could be implemented in For a fuller understanding of what you're trying to accomplish, what are you ultimately wanting to do with files in this different location? Could you append a |
My use case is reporting results to CircleCI. I'm currently working around the issue by copying/renaming the files, but am hoping to eventually avoid that. Appending to one file would be an improvement, but then all the tests would belong to one "suite" in Circle's view. |
@jrr, thanks for the context. I'm going to update the title of this issue to reflect the feature change. I won't be able to pick up this enhancement in the near term, but I'm open to accepting a PR if you (or anyone else) wants to implement the replacement macro feature as described. |
LogFilePath
LogFilePath
I think a runtime macro would be helpful too. We are have tests for |
Or at least |
@viceice, regarding the target framework, do you know of a way to reliably get the target framework at runtime? Also, does the trx logger actually produce files with |
@thzinc I only know RuntimeInformation.FrameworkDescription. Yes, the trx logger does exacly that. |
Any news on this issue? ATM this makes running
with the 2 test projects creates a single Take care, |
…ame TestResults.xml. See: syncromatics/JUnitTestLogger#2
When I run
dotnet test
at the solution level, results are placed within each test project like this:I'd like to produce output like this:
I can get part way there with
dotnet test --logger "junit;LogFilePath=../test-results/foo.xml"
, but then all my test suites will rewrite the onefoo.xml
file.Is it possible to emit filenames based on the name of the test project? (If not, consider this a feature request!)
The text was updated successfully, but these errors were encountered: