diff options
Diffstat (limited to 'tooling/rspec_flaky/example.rb')
-rw-r--r-- | tooling/rspec_flaky/example.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tooling/rspec_flaky/example.rb b/tooling/rspec_flaky/example.rb index e6c2f838194..8f369c99c5b 100644 --- a/tooling/rspec_flaky/example.rb +++ b/tooling/rspec_flaky/example.rb @@ -38,13 +38,18 @@ module RspecFlaky rspec_example.respond_to?(:attempts) ? rspec_example.attempts : 1 end + def feature_category + metadata[:feature_category] + end + def to_h { example_id: example_id, file: file, line: line, description: description, - last_attempts_count: attempts + last_attempts_count: attempts, + feature_category: feature_category } end |