diff --git a/README.md b/README.md index 7e9ce33..e457c08 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/spectator/command_line_arguments_config_source.cr b/src/spectator/command_line_arguments_config_source.cr index 59a3347..cd8651a 100644 --- a/src/spectator/command_line_arguments_config_source.cr +++ b/src/spectator/command_line_arguments_config_source.cr @@ -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