Skip to content

cucumber/pretty-formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

264 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


pretty-formatter

Rich formatting of Cucumber progress and results for the terminal

Latest version on npm Latest version on Maven Central

Build status Build status

This package provides several printers and utilities for rich formatting of Cucumber progress and results in the terminal.

Pretty

The pretty formatter writes a rich report of the scenario and example execution as it happens. Useful when running Cucumber from the terminal.

Example output of the pretty formatting, showing the different colors used

Progress

The progress formatter is minimalist progress indicator that writes a single character status for each test. Useful the test suite gets large. Pairs well with the summary formatter.

Example output of the progress formatting, showing the different colors used

Summary

The summary formatter writes a rich summary at the end of the test run.

Example output of the summary formatting, showing the different colors used

Test outcome coloring

Each step is colored according to the outcome. When the cucumber theme is in use the following colors and symbols are used.

Cucumber Outcome Color Status Symbol Progress Symbol
UNKNOWN n/a n/a n/a
PASSED Green .
SKIPPED Yellow -
PENDING Cyan P
UNDEFINED Blue U
AMBIGUOUS Magenta A
FAILED Red F

Usage and installation

Contributing

Each language implementation validates itself against the examples in the testdata folder. See the testdata/README.md for more information.

About

Prints a pretty report of the scenario execution as it happens

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

  •  

Contributors