Skip to content

gricsi/teamcity_formatter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TeamCity Formatter

Render cucumber output in the format expected by TeamCity. This formatter is compatible with cucumber 2.0

Installation

Add this to your test suite's Gemfile:

gem 'teamcity_formatter'

Then execute:

$ bundle install

Or, install it directly:

$ gem install teamcity_formatter

Usage

Direct cucumber to use the formatter:

$ cucumber -f TeamCityFormatter::Formatter

Notes

Our overall goals in writing a cucumber formatter are:

  1. Generate TeamCity output from a cucumber 2 test suite
  2. Passing and failing test counts should match the same counts as the standard cucumber formatter

Cucumber elements are mapped simply to TeamCity test artifacts:

Cucumber TeamCity
Feature TestSuite
Scenario Test
Sceanrio Outline Example Test

Test failures include the stack trace of the exception which triggered the failure.

Acknowledgements

This gem drew some code from cucumber_teamcity. The cucumber_teamcity formatter is not compatible with Cucumber 2.

Also, though we did not use code from their project, JetBrains makes available some TeamCity-related code here, which may be of interest to others researching TeamCity Cucumber formatters.

License

Apache License, Version 2.0

About

TeamCity cucumber output formatter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%