Skip to content

Commit

Permalink
Allow users to have shorter flaky report
Browse files Browse the repository at this point in the history
The rerun command for the flaky tests can be pretty big. This becomes
a bigger problem when there are more flaky tests appearing.

We allow users to skip the rerun command from the summry report by
setting the env variable `RSPECQ_REPORTER_RERUN_COMMAND_SKIP`. The location
and worker are still repoted.

The sentry payload remains the same.
  • Loading branch information
fragoulis committed Apr 8, 2021
1 parent ff395e1 commit 6ddca8b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ Breaking changes are prefixed with a "[BREAKING]" label.

## master (unreleased)

## 0.7.0 (2021-04-1)
## 0.7.1 (2021-04-08)

- New env variable RSPECQ_REPORTER_RERUN_COMMAND_SKIP. When set, the reporter
does not include the flaky test's rerun command.

## 0.7.0 (2021-04-01)

- New cli parameter `reproduction`.
When passed, primary worker publishes the queue in the same order as passed
Expand Down
2 changes: 2 additions & 0 deletions lib/rspecq/reporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ def summary(failures, errors, flaky_jobs, duration)
RSpec.configuration.pending_color
)

next if ENV["RSPECQ_REPORTER_RERUN_COMMAND_SKIP"]

summary << "#{@queue.job_rerun_command(j)}\n\n\n"
end
end
Expand Down

0 comments on commit 6ddca8b

Please sign in to comment.