Repository navigation
feat(@angular/build): add reporter output file option for unit-test - #30682
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
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
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-testbuilder now contains an additional option namedoutputFilethat supports configuring the output file for the reporter. This option is currently only used by thevitestrunner. See https://vitest.dev/config/#outputfileUsage example:
Does this PR introduce a breaking change?
Other information