Skip to content

Instalation And Configuration

Pavel Garchenko edited this page Oct 30, 2017 · 6 revisions

Installation

Add this line to your application's Gemfile:

gem 'atm_formatter'

And then execute:

$ bundle

Or install it yourself as:

$ gem install atm_formatter

Usage

Configuration

Add result/output formatter, options and adapter in spec_helper

ATMFormatter.configure do |c|
  c.base_url    = 'https://localhost'
  c.auth_type   = :basic
  c.project_id  = 'CC'
  c.test_run_id = 'CC-R180'
  c.environment = "".upcase
  c.username    = 'Test'
  c.password    = 'Test'
  c.result_formatter_options      = { run_only_found_tests: false }
  c.create_test_formatter_options = { update_existing_tests: true, 
                                      test_owner: 'Test', 
                                      custom_labels: ['automated'] }
end
Clone this wiki locally