Commit 7c0af33d authored by Andrejs Cunskis's avatar Andrejs Cunskis Committed by Sanad Liaquat

E2E: Update reliable spec report creation

parent d56e9bc5
This diff is collapsed.
This diff is collapsed.
...@@ -3,19 +3,8 @@ ...@@ -3,19 +3,8 @@
require_relative "../qa/tools/reliable_report" require_relative "../qa/tools/reliable_report"
desc "Fetch top most reliable specs" desc "Fetch reliable and unreliable spec data and create report"
task :reliable_spec_report, [:run_type, :range, :create_slack_report] do |_task, args| task :reliable_spec_report, [:range, :report_in_issue_and_slack] do |_task, args|
report = QA::Tools::ReliableReport.new(args[:run_type] || "package-and-qa", args[:range]) QA::Tools::ReliableReport.run(**args)
report.show_top_stable
report.notify_top_stable if args[:create_slack_report] == 'true'
end
desc "Fetch top most unstable reliable specs"
task :unreliable_spec_report, [:run_type, :range, :create_slack_report] do |_task, args|
report = QA::Tools::ReliableReport.new(args[:run_type] || "package-and-qa", args[:range])
report.show_top_unstable
report.notify_top_unstable if args[:create_slack_report] == 'true'
end end
# rubocop:enable Rails/RakeEnvironment # rubocop:enable Rails/RakeEnvironment
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment