lib/cucumber/formatter/progress.rb in cucumber-7.1.0 vs lib/cucumber/formatter/progress.rb in cucumber-8.0.0.rc.1
- old
+ new
@@ -56,9 +56,10 @@
test_step = event.test_step
result = event.result.with_filtered_backtrace(Cucumber::Formatter::BacktraceFilter)
progress(result.to_sym) if !test_step.hook? || result.failed?
return if test_step.hook?
+
collect_snippet_data(test_step, @ast_lookup) if result.undefined?
@pending_step_matches << @matches[test_step.to_s] if result.pending?
@failed_results << result if result.failed?
end