https://github.com/naps62/rspec_issue
tracing down an exit code issue with rspec/simplecov
https://github.com/naps62/rspec_issue
Last synced: over 1 year ago
JSON representation
tracing down an exit code issue with rspec/simplecov
- Host: GitHub
- URL: https://github.com/naps62/rspec_issue
- Owner: naps62
- Created: 2014-05-24T15:04:54.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-05-24T15:10:06.000Z (about 12 years ago)
- Last Synced: 2025-02-05T06:46:40.057Z (over 1 year ago)
- Language: Ruby
- Size: 121 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Relevant discussions
* [rspec-core
issue](https://github.com/rspec/rspec-core/issues/1553#issuecomment-44038624)
# Setup
Just `bundle install`
# Reproducing
`correctly_failing_spec.rb` should run the test and return the expected exit
code (not 0, since the test fails on purpose):
```bash
bundle exec rspec correctly_failing_spec.rb
echo $? # should be 1
```
`offending_spec.rb` triggers the bug:
```bash
bundle exec rspec offending_issue.rb
echo $? # should be 1, but is actually 0
```
The only difference between the two specs is that the second one has `require
'simplecov'`