Skip to content

Commit

Permalink
percentage ckipped task fails if spec_path doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
anmarchenko committed Oct 15, 2024
1 parent 514cbe0 commit 0013500
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def initialize(verbose: false, spec_path: "spec")
@failed = false

log("Spec path: #{@spec_path}")
error!("Spec path is not a directory: #{@spec_path}") if !File.directory?(@spec_path)
end

def call
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ def initialize(rspec_cli_options: [], verbose: false, spec_path: "spec")
end

def call
return 0.0 if @failed

require_rspec!
configure_datadog

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ def initialize(verbose: false, spec_path: "spec")
end

def call
return 0.0 if @failed

require "datadog/ci"

Datadog.configure do |c|
Expand Down

0 comments on commit 0013500

Please sign in to comment.