Skip to content
This repository was archived by the owner on Nov 9, 2023. It is now read-only.

CircleCI-Archived/cucumber-formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cucumber-formatter

Circle CI

Custom formatter for Cucumber that defends against timecop overriding Time.now.

The _circleci_formatter.rb file should be dumped into the features/support directory and specified with Cucumber's --format flag:

bundle exec cucumber --format CircleCICucumberFormatter::CircleCIJson

How it works

Timecop redefines Time.now to Time.now_without_mock_time. If that method exists, then we call that method instead of Time.now.

This approach is somewhat brittle because it relies on the internals of before_step and after_step not changing.

Releases

No releases published

Packages

No packages published

Contributors 6