Skip to content

Commit 6ddca8b

Browse files
committed
Allow users to have shorter flaky report
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.
1 parent ff395e1 commit 6ddca8b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ Breaking changes are prefixed with a "[BREAKING]" label.
44

55
## master (unreleased)
66

7-
## 0.7.0 (2021-04-1)
7+
## 0.7.1 (2021-04-08)
8+
9+
- New env variable RSPECQ_REPORTER_RERUN_COMMAND_SKIP. When set, the reporter
10+
does not include the flaky test's rerun command.
11+
12+
## 0.7.0 (2021-04-01)
813

914
- New cli parameter `reproduction`.
1015
When passed, primary worker publishes the queue in the same order as passed

lib/rspecq/reporter.rb

+2
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ def summary(failures, errors, flaky_jobs, duration)
113113
RSpec.configuration.pending_color
114114
)
115115

116+
next if ENV["RSPECQ_REPORTER_RERUN_COMMAND_SKIP"]
117+
116118
summary << "#{@queue.job_rerun_command(j)}\n\n\n"
117119
end
118120
end

0 commit comments

Comments
 (0)