Test summary confusingly list tests marked as `skip()` under `pending`
Created by: jeffwidman
I recently learned that there's an actual difference between marking a test as pending()
(test runs, expected to fail) vs skip()
(test doesn't run).
However, this isn't clear from the test run summary:
# run test marked with skip()
Finished in 0.00332 seconds (files took 2.42 seconds to load)
1 example, 0 failures, 1 pending
I would have expected it to say instead:
1 example, 0 failures, 0 pending, 1 skipped
Clearly differentiating between "skipped" and "pending" in the test summary will reduce confusion (I literally had no idea they behaved different! Thought they were just aliases of each other...). It will also make it quicker to realize a slow test suite may just need a few pending failures marked as skipped until someone has time to address them.
output of rspec --version
:
$ rspec --version
RSpec 3.12
- rspec-core 3.12.1
- rspec-expectations 3.12.2
- rspec-mocks 3.12.3
- rspec-support 3.12.0