Sha256: 1c2954e3a090ca741280220d3dd03e583be213c46798ad5c913dbb10c15b6d0b
Contents?: true
Size: 737 Bytes
Versions: 2
Compression:
Stored size: 737 Bytes
Contents
require 'yaml' require_relative '../appveyor/worker' module Minitest def self.plugin_appveyor_init options ::AppVeyor::Worker.message "#{name} seed: #{options[:seed]}" self.reporter << AppVeyor.new unless ::AppVeyor::Worker.skip? end class AppVeyor < AbstractReporter def record result ::AppVeyor::Worker.test testFramework: 'Minitest', testName: result.name, fileName: result.class.name, outcome: result.skipped? ? 'Ignored' : result.passed? ? 'Passed' : 'Failed', durationMilliseconds: result.time*1000, StdOut: YAML.dump('assertions'=>result.assertions), ErrorStackTrace: (result.failure.backtrace * "\n" rescue nil) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
appveyor-worker-0.2.0 | lib/minitest/appveyor_plugin.rb |
appveyor-worker-0.1.1 | lib/minitest/appveyor_plugin.rb |