Skip to content

Commit

Permalink
Removed junit command-line switch
Browse files Browse the repository at this point in the history
  • Loading branch information
tolbrino committed Mar 16, 2017
1 parent cdb3738 commit 476c106
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,13 @@ you need to add
project dependencies in `mix.exs`:

```
{:junit_formatter, "~> 0.1.0", only: :test}
{:junit_formatter, "~> 1.3.0", only: :test}
```

To enable the XML report generation you need to configure ExUnit just before you actually start it within your test suite:

```
if Enum.member?(System.argv(), "--junit") do
ExUnit.configure formatters: [JUnitFormatter, ExUnit.CLIFormatter]
end
ExUnit.configure formatters: [JUnitFormatter, ExUnit.CLIFormatter]
ExUnit.start
```

Expand Down
2 changes: 1 addition & 1 deletion src/unit/engine/ExunitTestEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function run() {
}

private function buildTestFuture($project, $paths, $junit_file) {
$cmd_line = csprintf('cd %s && mix test %Ls --junit',
$cmd_line = csprintf('cd %s && mix test %Ls',
$project, $paths);

return new ExecFuture('%C', $cmd_line);
Expand Down

0 comments on commit 476c106

Please sign in to comment.