Skip to content

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
ArturT merged 2 commits intomasterfrom
rspec-split-by-test-examples-v2
Apr 9, 2020
Merged

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
ArturT merged 2 commits intomasterfrom
rspec-split-by-test-examples-v2

Conversation

@ArturT
Copy link
Copy Markdown
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