AppVeyor::Worker
Access to AppVeyor Build Worker API.
Installation
Add this line to your application's Gemfile:
gem 'appveyor-worker' # if ENV['APPVEYOR_API_URL']And then execute:
$ bundle
Or install it yourself as:
$ gem install appveyor-worker
Usage
require 'appveyor/worker'
AppVeyor::Worker.message "Hello, world!", "It's me"Minitest
When using AppVeyor::Worker under
Minitest
the latter automagically requires the former.
Just add to Gemfile et voila! Test results will populate list
and AppVeyor::Worker.message is available in your tests.
In addition, Minitest seed will be sent as AppVeyor message.
RSpec
For RSpec you need two lines of code, as mentioned above:
-
Add gem to
Gemfile -
Require gem
- Either directly in one of your
./spec/*_spec.rbfiles - Or by adding
-r appveyor/workerto./.rspec
- Either directly in one of your
RScpec seed is also reported as standard AppVeyor message.