mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Implement option for JUnit test output
This commit is contained in:
parent
ef8b773787
commit
a7d8d35a06
2 changed files with 3 additions and 3 deletions
|
@ -129,10 +129,10 @@ In no particular order, features that have been implemented and are planned:
|
|||
- [X] Dry run - for validation and checking formatted output
|
||||
- [X] Config block in `spec_helper.cr`
|
||||
- [X] Config file - `.spectator`
|
||||
- [ ] Reporter and formatting
|
||||
- [X] Reporter and formatting
|
||||
- [X] RSpec/Crystal Spec default
|
||||
- [X] JSON
|
||||
- [ ] JUnit
|
||||
- [X] JUnit
|
||||
- [X] TAP
|
||||
|
||||
### How it Works
|
||||
|
|
|
@ -23,7 +23,7 @@ module Spectator
|
|||
parser.on("-p", "--profile", "Display the 10 slowest specs") { raise NotImplementedError.new("-p") }
|
||||
parser.on("--location FILE:LINE", "Run the example at line 'LINE' in the file 'FILE', multiple allowed") { |location| raise NotImplementedError.new("--location") }
|
||||
parser.on("--json", "Generate JSON output") { builder.formatter = Formatting::JsonFormatter.new }
|
||||
parser.on("--junit_output OUTPUT_DIR", "Generate JUnit XML output") { |output_dir| raise NotImplementedError.new("--juni_output") }
|
||||
parser.on("--junit_output OUTPUT_DIR", "Generate JUnit XML output") { |output_dir| builder.add_formatter(Formatting::JUnitFormatter.new(output_dir)) }
|
||||
parser.on("--tap", "Generate TAP output (Test Anything Protocol)") { builder.formatter = Formatting::TAPFormatter.new }
|
||||
parser.on("--no-color", "Disable colored output") { raise NotImplementedError.new("--no-color") }
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue