Skip to content

Commit

Permalink
some review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
anmarchenko committed Jul 22, 2024
1 parent 9605b93 commit c050ca4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/tasks/rspec.rake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace :datadog do
namespace :ci do
namespace :rspec do
task :skippable_percentage do
task skippable_percentage: :environment do
require "rspec/core"
require "datadog/ci"

Expand All @@ -10,6 +10,7 @@ namespace :datadog do
c.ci.itr_enabled = true
c.ci.discard_traces = true
c.ci.instrument :rspec, dry_run_enabled: true
c.tracing.enabled = true
end

rspec_cli_options = %w[
Expand All @@ -28,7 +29,7 @@ namespace :datadog do
print((itr.skipped_tests_count.to_f / itr.total_tests_count).floor(2))
end

task :skippable_percentage_estimate do
task skippable_percentage_estimate: :environment do
require "datadog/ci"

if ENV["DD_SERVICE"].nil?
Expand All @@ -40,6 +41,7 @@ namespace :datadog do
c.ci.enabled = true
c.ci.itr_enabled = true
c.ci.discard_traces = true
c.tracing.enabled = true
end

test_session = Datadog::CI.start_test_session
Expand Down

0 comments on commit c050ca4

Please sign in to comment.