minitest-reporters 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/lib/minitest/reporters.rb +1 -0
- data/lib/minitest/reporters/ansi.rb +24 -0
- data/lib/minitest/reporters/default_reporter.rb +2 -2
- data/lib/minitest/reporters/junit_reporter.rb +0 -1
- data/lib/minitest/reporters/progress_reporter.rb +0 -1
- data/lib/minitest/reporters/ruby_mate_reporter.rb +0 -2
- data/lib/minitest/reporters/rubymine_reporter.rb +0 -1
- data/lib/minitest/reporters/spec_reporter.rb +0 -2
- data/lib/minitest/reporters/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 803976a6ef7059a363142b42a84bfa5dd0a38d5e
|
4
|
+
data.tar.gz: e9b5b59529b2e7466f76d77a5dbb2e1ae4b5d615
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d620cefda362bbe7c7ecb356fc7a769c70ee93b3c1c4fb0efb0c45cba45bf2f73bd6c1535342936b9c906f568031da85229c3a08e651d6353992e0c75001df93
|
7
|
+
data.tar.gz: d6904bad1c42746bac96a82a1afa8b1f96110956bf257298d85bf1988099b8d7d9303c961efd318638b5a3559fc702d8f17dff440802d883738d0071515a4c32
|
data/Rakefile
CHANGED
@@ -10,7 +10,7 @@ end
|
|
10
10
|
rubymine_home = [
|
11
11
|
ENV["RUBYMINE_HOME"],
|
12
12
|
"../rubymine-contrib/ruby-testing/src/rb/testing/patch/common",
|
13
|
-
"/Applications/RubyMine.app/rb/testing/patch/common",
|
13
|
+
"/Applications/RubyMine.app/Contents/rb/testing/patch/common",
|
14
14
|
].compact.detect { |d| Dir.exist?(d) }
|
15
15
|
|
16
16
|
Rake::TestTask.new("test:gallery") do |t|
|
data/lib/minitest/reporters.rb
CHANGED
@@ -7,6 +7,7 @@ module Minitest
|
|
7
7
|
module Reporters
|
8
8
|
require "minitest/reporters/version"
|
9
9
|
|
10
|
+
autoload :ANSI, "minitest/reporters/ansi"
|
10
11
|
autoload :BaseReporter, "minitest/reporters/base_reporter"
|
11
12
|
autoload :DefaultReporter, "minitest/reporters/default_reporter"
|
12
13
|
autoload :SpecReporter, "minitest/reporters/spec_reporter"
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module Minitest
|
2
|
+
module Reporters
|
3
|
+
module ANSI
|
4
|
+
module Code
|
5
|
+
if ($stdin.tty?)
|
6
|
+
require 'ansi/code'
|
7
|
+
|
8
|
+
include ::ANSI::Code
|
9
|
+
extend ::ANSI::Code
|
10
|
+
else
|
11
|
+
def black(s = nil)
|
12
|
+
block_given? ? yield : s
|
13
|
+
end
|
14
|
+
|
15
|
+
%w[ red green yellow blue magenta cyan white ].each do |color|
|
16
|
+
alias_method color, :black
|
17
|
+
end
|
18
|
+
|
19
|
+
extend self
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -1,5 +1,3 @@
|
|
1
|
-
require 'ansi/code'
|
2
|
-
|
3
1
|
module Minitest
|
4
2
|
module Reporters
|
5
3
|
# A reporter identical to the standard Minitest reporter except with more
|
@@ -8,7 +6,9 @@ module Minitest
|
|
8
6
|
# Based upon Ryan Davis of Seattle.rb's Minitest (MIT License).
|
9
7
|
#
|
10
8
|
# @see https://github.com/seattlerb/minitest Minitest
|
9
|
+
|
11
10
|
class DefaultReporter < BaseReporter
|
11
|
+
include ANSI::Code
|
12
12
|
include RelativePosition
|
13
13
|
|
14
14
|
def initialize(options = {})
|
@@ -1,7 +1,6 @@
|
|
1
1
|
# Test results reporter for RubyMine IDE (http://www.jetbrains.com/ruby/) and
|
2
2
|
# TeamCity(http://www.jetbrains.com/teamcity/) Continuous Integration Server
|
3
3
|
|
4
|
-
require 'ansi/code'
|
5
4
|
begin
|
6
5
|
require 'teamcity/runner_common'
|
7
6
|
require 'teamcity/utils/service_message_factory'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-reporters
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Kern
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -117,6 +117,7 @@ files:
|
|
117
117
|
- lib/minitest/old_activesupport_fix.rb
|
118
118
|
- lib/minitest/relative_position.rb
|
119
119
|
- lib/minitest/reporters.rb
|
120
|
+
- lib/minitest/reporters/ansi.rb
|
120
121
|
- lib/minitest/reporters/base_reporter.rb
|
121
122
|
- lib/minitest/reporters/default_reporter.rb
|
122
123
|
- lib/minitest/reporters/junit_reporter.rb
|
@@ -152,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
153
|
version: '0'
|
153
154
|
requirements: []
|
154
155
|
rubyforge_project: minitest-reporters
|
155
|
-
rubygems_version: 2.
|
156
|
+
rubygems_version: 2.4.4
|
156
157
|
signing_key:
|
157
158
|
specification_version: 4
|
158
159
|
summary: Create customizable Minitest output formats
|