minitest-ci 2.2.0 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,17 @@
1
+ === 2.3.0 / 2012-07-19
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Adds zentest as devdep. Forces gem of minitest
6
+
7
+ * 4 unknowns:
8
+
9
+ * Adds hoe-version.
10
+ * CGI.escape suite name in generated filename. Fixes #5.
11
+ * Edited to remove second require of cgi.
12
+ * I was seeing the wrong version of minitest being loaded in rake multi.
13
+
14
+
1
15
  === 2.2.0 / 2012-05-10
2
16
  This release was created separate from 2.1.0 incase people don't want to upgrade to 3.0 (why?)
3
17
 
data/Rakefile CHANGED
@@ -4,7 +4,7 @@ require 'rubygems'
4
4
  require 'hoe'
5
5
 
6
6
  Hoe.plugin :isolate
7
- Hoe.plugin :git
7
+ Hoe.plugin :version, :git
8
8
 
9
9
  Hoe.spec 'minitest-ci' do
10
10
  developer 'Brian Henderson', 'bhenderson@attinteractive.com'
@@ -14,6 +14,7 @@ Hoe.spec 'minitest-ci' do
14
14
  extra_deps << ['minitest', '~> 3.0']
15
15
  extra_dev_deps << ['nokogiri', '~> 1.5.0']
16
16
  extra_dev_deps << ['rdoc', '>= 2.4.2']
17
+ extra_dev_deps << ['ZenTest']
17
18
  end
18
19
 
19
20
  # vim: syntax=ruby
data/lib/minitest/ci.rb CHANGED
@@ -1,3 +1,4 @@
1
+ gem 'minitest'
1
2
  require 'minitest/unit'
2
3
  #unless MiniTest::Unit::VERSION >= '2.12.0'
3
4
  unless MiniTest::Unit.public_method_defined? :record
@@ -10,7 +11,7 @@ require 'cgi'
10
11
  module MiniTest
11
12
  module Ci
12
13
 
13
- VERSION = '2.2.0'
14
+ VERSION = '2.3.0'
14
15
 
15
16
  @suites = Hash.new {|h,k| h[k] = []}
16
17
 
@@ -68,7 +69,7 @@ module MiniTest
68
69
  end
69
70
  end
70
71
 
71
- File.open "TEST-#{name}.xml", "w" do |f|
72
+ File.open "TEST-#{CGI.escape(name.to_s)}.xml", "w" do |f|
72
73
  f.puts '<?xml version="1.0" encoding="UTF-8"?>'
73
74
  f.puts "<testsuite time='#{"%6f" % total_time}' skipped='#{skips}' failures='#{failures}' errors='#{errors}' name='#{name}' assertions='#{assertions}' tests='#{suite.count}'>"
74
75
 
@@ -1,4 +1,5 @@
1
1
  require "minitest/ci"
2
+ require "minitest/spec"
2
3
  require "minitest/autorun"
3
4
  require 'stringio'
4
5
  require 'nokogiri'
@@ -33,6 +34,12 @@ class MockTestSuite < MiniTest::Unit::TestCase
33
34
  end
34
35
  end
35
36
 
37
+ SpecWithPunctuation = describe "spec/with::punctuation" do
38
+ it "passes" do
39
+ pass
40
+ end
41
+ end
42
+
36
43
  class TestMinitest
37
44
  end
38
45
 
@@ -43,6 +50,7 @@ class TestMinitest::TestCi < MiniTest::Unit::TestCase
43
50
  runner = MiniTest::CiUnit.new
44
51
 
45
52
  runner._run_suite MockTestSuite, :test
53
+ runner._run_suite SpecWithPunctuation, :test
46
54
 
47
55
  @@test_suites.delete MockTestSuite
48
56
  MiniTest::Ci.finish runner.output
@@ -116,4 +124,9 @@ class TestMinitest::TestCi < MiniTest::Unit::TestCase
116
124
  error = @doc.at_xpath('/testsuite/testcase[@name="test_raise_error"]')
117
125
  refute_match( /lib\/minitest/, error.inner_text )
118
126
  end
127
+
128
+ def test_testname
129
+ assert File.file?(File.join(MiniTest::Ci.report_dir,
130
+ "TEST-spec%2Fwith%3A%3Apunctuation.xml"))
131
+ end
119
132
  end
metadata CHANGED
@@ -1,98 +1,109 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: minitest-ci
3
- version: !ruby/object:Gem::Version
4
- hash: 7
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.3.0
5
5
  prerelease:
6
- segments:
7
- - 2
8
- - 2
9
- - 0
10
- version: 2.2.0
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Brian Henderson
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-05-10 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-07-19 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: minitest
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
18
+ requirements:
26
19
  - - ~>
27
- - !ruby/object:Gem::Version
28
- hash: 7
29
- segments:
30
- - 3
31
- - 0
32
- version: "3.0"
20
+ - !ruby/object:Gem::Version
21
+ version: '3.0'
33
22
  type: :runtime
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: rdoc
37
23
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
39
25
  none: false
40
- requirements:
26
+ requirements:
41
27
  - - ~>
42
- - !ruby/object:Gem::Version
43
- hash: 19
44
- segments:
45
- - 3
46
- - 10
47
- version: "3.10"
28
+ - !ruby/object:Gem::Version
29
+ version: '3.0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rdoc
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: '3.10'
48
38
  type: :development
49
- version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '3.10'
46
+ - !ruby/object:Gem::Dependency
51
47
  name: nokogiri
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: 1.5.0
54
+ type: :development
52
55
  prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
56
+ version_requirements: !ruby/object:Gem::Requirement
54
57
  none: false
55
- requirements:
58
+ requirements:
56
59
  - - ~>
57
- - !ruby/object:Gem::Version
58
- hash: 3
59
- segments:
60
- - 1
61
- - 5
62
- - 0
60
+ - !ruby/object:Gem::Version
63
61
  version: 1.5.0
62
+ - !ruby/object:Gem::Dependency
63
+ name: ZenTest
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
64
70
  type: :development
65
- version_requirements: *id003
66
- - !ruby/object:Gem::Dependency
67
- name: hoe
68
71
  prerelease: false
69
- requirement: &id004 !ruby/object:Gem::Requirement
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: hoe
80
+ requirement: !ruby/object:Gem::Requirement
70
81
  none: false
71
- requirements:
82
+ requirements:
72
83
  - - ~>
73
- - !ruby/object:Gem::Version
74
- hash: 7
75
- segments:
76
- - 3
77
- - 0
78
- version: "3.0"
84
+ - !ruby/object:Gem::Version
85
+ version: '3.0'
79
86
  type: :development
80
- version_requirements: *id004
81
- description: |-
82
- CI reporter plugin for MiniTest
83
-
84
- This gem was made possible by ATT Interactive.
85
- email:
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: '3.0'
94
+ description: ! 'CI reporter plugin for MiniTest
95
+
96
+
97
+ This gem was made possible by ATT Interactive.'
98
+ email:
86
99
  - bhenderson@attinteractive.com
87
100
  executables: []
88
-
89
101
  extensions: []
90
-
91
- extra_rdoc_files:
102
+ extra_rdoc_files:
92
103
  - History.txt
93
104
  - Manifest.txt
94
105
  - README.txt
95
- files:
106
+ files:
96
107
  - .autotest
97
108
  - History.txt
98
109
  - Manifest.txt
@@ -103,37 +114,29 @@ files:
103
114
  - .gemtest
104
115
  homepage: https://github.com/bhenderson/minitest-ci
105
116
  licenses: []
106
-
107
117
  post_install_message:
108
- rdoc_options:
118
+ rdoc_options:
109
119
  - --main
110
120
  - README.txt
111
- require_paths:
121
+ require_paths:
112
122
  - lib
113
- required_ruby_version: !ruby/object:Gem::Requirement
123
+ required_ruby_version: !ruby/object:Gem::Requirement
114
124
  none: false
115
- requirements:
116
- - - ">="
117
- - !ruby/object:Gem::Version
118
- hash: 3
119
- segments:
120
- - 0
121
- version: "0"
122
- required_rubygems_version: !ruby/object:Gem::Requirement
125
+ requirements:
126
+ - - ! '>='
127
+ - !ruby/object:Gem::Version
128
+ version: '0'
129
+ required_rubygems_version: !ruby/object:Gem::Requirement
123
130
  none: false
124
- requirements:
125
- - - ">="
126
- - !ruby/object:Gem::Version
127
- hash: 3
128
- segments:
129
- - 0
130
- version: "0"
131
+ requirements:
132
+ - - ! '>='
133
+ - !ruby/object:Gem::Version
134
+ version: '0'
131
135
  requirements: []
132
-
133
136
  rubyforge_project: minitest-ci
134
- rubygems_version: 1.8.20
137
+ rubygems_version: 1.8.24
135
138
  signing_key:
136
139
  specification_version: 3
137
140
  summary: CI reporter plugin for MiniTest This gem was made possible by ATT Interactive.
138
- test_files:
141
+ test_files:
139
142
  - test/test_minitest_ci.rb