crystal spec --fail-fast does not output failures

Created on 21 Oct 2019  路  4Comments  路  Source: crystal-lang/crystal

describe MyClass do
  it "one" do
    false.should eq(false)
  end

  it "two" do
    false.should eq(true)
  end

  it "three" do
    false.should eq(false)
  end
end
crystal spec --fail-fast
.F

I would expect

crystal spec
.F

Failures:

  1) MyClass two
     Failure/Error: false.should eq(true)

       Expected: true
            got: false

     # spec/my_class_spec.cr:11

Finished in 108 microseconds
2 examples, 1 failures, 0 errors, 0 pending

Failed examples:

crystal spec spec/my_class_spec.cr:10 # MyClass two
feature topicspecs

Most helpful comment

I guess --fail-fast should also print that not all specs were run. Maybe by adding 1 skipped to the line with counts.

All 4 comments

I guess --fail-fast should also print that not all specs were run. Maybe by adding 1 skipped to the line with counts.

All the new spec filtering options should increment skipped too.

I've created a new issue for tracking skipped count: #8403

This issue should focus on fixing spec output for --fail-fast.

This caught me out as well since it is a change between 0.30.1 and 0.31.1 that is undocumented I believe.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

costajob picture costajob  路  3Comments

jhass picture jhass  路  3Comments

cjgajard picture cjgajard  路  3Comments

pbrusco picture pbrusco  路  3Comments

RX14 picture RX14  路  3Comments