-
Notifications
You must be signed in to change notification settings - Fork 11.9k
feat(@angular/build): add reporter output file option for unit-test #30682
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
Conversation
9e16160
to
087f61c
Compare
The limitation of this PR is that it does not appear to support the combined Would be nice to still be able to log verbose/default output to the console while logging junit / other file formats to a file. |
@dougbroad-se Yes, I deliberately chose to keep it simple for this PR. We can always add the object syntax afterwards if needed 👍 |
087f61c
to
ccd0dc5
Compare
@alan-agius4 I rebased on @clydin work from #30910. Can you take another look? |
0dc0a59
to
053fbd1
Compare
f4d70e9
to
5bccc81
Compare
Can you rebase one more time? This should then be able to get merged. Thank you for the contribution. |
The experimental `unit-test` builder now contains an additional option named `outputFile` that supports configuring the output file for the reporter. This option is currently only used by the `vitest` runner. See https://vitest.dev/config/#outputfile Usage example: ``` ng test --no-watch --reporter=json --output-file=results/unit-test.json ```
5bccc81
to
85b5400
Compare
PR Checklist
Please check to confirm your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
it is not possible to customize the output file of a reporter for the vitest runner.
What is the new behavior?
The experimental
unit-test
builder now contains an additional option namedoutputFile
that supports configuring the output file for the reporter. This option is currently only used by thevitest
runner. See https://vitest.dev/config/#outputfileUsage example:
Does this PR introduce a breaking change?
Other information