Skip to content

Commit

Permalink
Propagate the random seed in the runner.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomthom committed Jun 20, 2024
1 parent d527b1d commit db31247
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/testup/ui/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ def event_run_tests(test_suite_json)
options = {
ui: TestUp.settings[:run_in_gui],
}
if TestUp.settings[:seed] && TestUp.settings[:seed] >= 0
options[:seed] = TestUp.settings[:seed]
end
test_suite = Report::TestSuite.from_hash(test_suite_json)
TestUp::API.run_test_suite(test_suite, options: options) { |results|
test_suite.merge_results(results)
Expand Down

0 comments on commit db31247

Please sign in to comment.