Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom formatter KnapsackPro::Formatters::RSpecJsonFormatter to add support for RSpec example.id in JSON report to be able to split test files by test examples in RSpec older than 3.6.0 #104

Merged
merged 2 commits into from
Apr 9, 2020

Conversation

ArturT
Copy link
Member

@ArturT ArturT commented Apr 9, 2020

Add custom formatter KnapsackPro::Formatters::RSpecJsonFormatter to add support for RSpec example.id in JSON report to be able to split test files by test examples in RSpec older than 3.6.0

problem

RSpec >= 3.6.0 introduced example.id in JSON report
https://github.com/rspec/rspec-core/blob/master/Changelog.md#360--2017-05-04

Related PR rspec/rspec-core#2369

We need example.id to split test files by test examples.

solution

We created custom formatter KnapsackPro::Formatters::RSpecJsonFormatter to add example.id to JSON report. The custom formatter is used only for RSpec < 3.6.0.

…d support for RSpec example.id in JSON report to be able to split test files by test examples in RSpec older than 3.6.0
@ArturT ArturT changed the title Add custom formater KnapsackPro::Formatters::RSpecJsonFormatter to add support for RSpec example.id in JSON report to be able to split test files by test examples in RSpec older than 3.6.0 Add custom formatter KnapsackPro::Formatters::RSpecJsonFormatter to add support for RSpec example.id in JSON report to be able to split test files by test examples in RSpec older than 3.6.0 Apr 9, 2020
@ArturT ArturT merged commit d6af917 into master Apr 9, 2020
@ArturT ArturT deleted the rspec-split-by-test-examples-v2 branch April 9, 2020 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant