ci_reporter 2.0.0.alpha1 → 2.0.0.alpha2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 818b7ca178f6055f90139af88c19856b921a2001
4
- data.tar.gz: 785075435480302645e4cddddfb130aa9c5716f2
3
+ metadata.gz: 9d4fd920bd59773352edb9dd239cb99ffe419406
4
+ data.tar.gz: 227712fdcd966fa2b57d5a32133e5e0587a89e03
5
5
  SHA512:
6
- metadata.gz: a7fa510d753444985ce7a6224e374cbec231238d77aa4699ccfc4ec721724cc21e8517af4f09553c0616c7ce2af738e7825f0a4a7b4d4fda5e21813935f96137
7
- data.tar.gz: 3f817a975671ec431d99af56c292f5c2c821fc5aaa8be906f592069be63f52a23cd1fae81947e1f60c7624eb6e5d442b7b38d065de7da6eba6327cd6dd1815b4
6
+ metadata.gz: 094edf36eb8b168fb606a2a2ad73ea9bf3e49a078934462ff95d2b07a27f49038291789b162807fe8395f49d237887edd0926f983a1848b100e0d150ff9e2266
7
+ data.tar.gz: bdde115c27717e95030df44d1accd7d79b38ba8230895faa0d13409cb4b721444efc79615241dd599e7e0ad25ada12777cad0247783d43428954a1d1298e2dd1
data/README.md CHANGED
@@ -4,7 +4,10 @@ runs. The resulting files can be read by a continuous integration
4
4
  system that understands Ant's JUnit report XML format, thus allowing
5
5
  your CI system to track test/spec successes and failures.
6
6
 
7
- [![Build Status](https://travis-ci.org/nicksieger/ci_reporter.svg?branch=master)](https://travis-ci.org/nicksieger/ci_reporter)
7
+ [![Gem Version](https://badge.fury.io/rb/ci_reporter.svg)](http://badge.fury.io/rb/ci_reporter)
8
+ [![Build Status](https://travis-ci.org/ci-reporter/ci_reporter.svg?branch=master)](https://travis-ci.org/ci-reporter/ci_reporter)
9
+ [![Dependency Status](https://gemnasium.com/ci-reporter/ci_reporter.svg)](https://gemnasium.com/ci-reporter/ci_reporter)
10
+ [![Code Climate](https://codeclimate.com/github/ci-reporter/ci_reporter.png)](https://codeclimate.com/github/ci-reporter/ci_reporter)
8
11
 
9
12
  ## Usage
10
13
 
@@ -135,7 +135,7 @@ module CI
135
135
  end
136
136
 
137
137
  def skipped?
138
- return skipped
138
+ skipped
139
139
  end
140
140
 
141
141
  # Writes xml representing the test result to the provided builder.
@@ -143,14 +143,11 @@ module CI
143
143
  attrs = {}
144
144
  each_pair {|k,v| attrs[k] = builder.trunc!(v.to_s) unless v.nil? || v.to_s.empty?}
145
145
  builder.testcase(attrs) do
146
- if skipped
146
+ if skipped?
147
147
  builder.skipped
148
148
  else
149
149
  failures.each do |failure|
150
- tag = case failure.class.name
151
- when /TestUnitSkipped/ then :skipped
152
- when /TestUnitError/, /MiniTestError/ then :error
153
- else :failure end
150
+ tag = failure.error? ? :error : :failure
154
151
 
155
152
  builder.tag!(tag, :type => builder.trunc!(failure.name), :message => builder.trunc!(failure.message)) do
156
153
  builder.text!(failure.message + " (#{failure.name})\n")
@@ -1,5 +1,5 @@
1
1
  module CI
2
2
  module Reporter
3
- VERSION = "2.0.0.alpha1"
3
+ VERSION = "2.0.0.alpha2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ci_reporter
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.alpha1
4
+ version: 2.0.0.alpha2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Sieger
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-06-12 00:00:00.000000000 Z
12
+ date: 2014-06-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: builder
@@ -91,7 +91,6 @@ files:
91
91
  - ci_reporter.gemspec
92
92
  - gemfiles/.gitignore
93
93
  - lib/ci/reporter/core.rb
94
- - lib/ci/reporter/internal.rb
95
94
  - lib/ci/reporter/rake/utils.rb
96
95
  - lib/ci/reporter/report_manager.rb
97
96
  - lib/ci/reporter/test_suite.rb
@@ -1,31 +0,0 @@
1
- module CI
2
- module Reporter
3
- module Internal
4
- def run_ruby_acceptance(cmd)
5
- ENV['CI_REPORTS'] ||= "acceptance/reports"
6
- if ENV['RUBYOPT']
7
- opts = ENV['RUBYOPT']
8
- ENV['RUBYOPT'] = nil
9
- else
10
- opts = "-rubygems"
11
- end
12
- begin
13
- result_proc = proc {|ok,*| puts "Failures above are expected." unless ok }
14
- ruby "-Ilib #{opts} #{cmd}", &result_proc
15
- ensure
16
- ENV['RUBYOPT'] = opts if opts != "-rubygems"
17
- ENV.delete 'CI_REPORTS'
18
- end
19
- end
20
-
21
- def save_env(v)
22
- ENV["PREV_#{v}"] = ENV[v]
23
- end
24
-
25
- def restore_env(v)
26
- ENV[v] = ENV["PREV_#{v}"]
27
- ENV.delete("PREV_#{v}")
28
- end
29
- end
30
- end
31
- end