Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

timestamped-scenarios

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

timestamped-scenarios

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

What?

This gem provides custom cucumber formatters which append a test run timestamp to each scenario name as it is generated. a Timestamped::PrettyFormatter and Timestamped::HtmlFormatter are supplied already, but you can use the AddsTimestamp module to dynamically add timestamping to pretty much any Cucumber formatter.

Why?

My CI system is set up to record a screen capture movie of each test run. I use these timestamps to easily find a specific scenario's behaviour as recorded in the movie.

How?

Install the gem with gem install timestamped-scenarios and then simply ask cucumber to use the custom formatters with --format 'Timestamped::HtmlFormatter' --format 'Timestamped::PrettyFormatter'

You can also configure cucumber to use the formatters in your rake cucumber task, or by using a cucumber.yml config file. Check out the cucumber.yml file in the example directory to see how this is done.

You can create additional Formatter subclasses as required by using the Timestamped::AddsTimestamp#formatter_with_timestamped_scenario_names method.

Credits

Many thanks to Caleb Clausen for his metaprogramming wizardry, which cleaned up my implementation of AddsTimestamp greatly.

FAQs

Package last updated on 20 Nov 2010

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc