Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
36213c2a
Commit
36213c2a
authored
Nov 22, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SpecHelper] More refinement for bacon support.
parent
70909db3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
bacon.rb
spec/spec_helper/bacon.rb
+6
-1
No files found.
spec/spec_helper/bacon.rb
View file @
36213c2a
...
@@ -75,6 +75,11 @@ module Bacon
...
@@ -75,6 +75,11 @@ module Bacon
# Overrides the TestUnitOutput to provide colored result output.
# Overrides the TestUnitOutput to provide colored result output.
#
#
module
TestUnitOutput
module
TestUnitOutput
def
handle_specification
(
name
)
print
':'
yield
end
def
handle_requirement
(
description
,
disabled
=
false
)
def
handle_requirement
(
description
,
disabled
=
false
)
error
=
yield
error
=
yield
if
!
error
.
empty?
if
!
error
.
empty?
...
@@ -93,7 +98,7 @@ module Bacon
...
@@ -93,7 +98,7 @@ module Bacon
first_error
=
''
first_error
=
''
error_count
=
0
error_count
=
0
ErrorLog
.
lines
.
each
do
|
s
|
ErrorLog
.
lines
.
each
do
|
s
|
error_count
+=
1
if
s
.
include?
(
'Error:'
)
error_count
+=
1
if
s
.
include?
(
'Error:'
)
||
s
.
include?
(
'Informative'
)
first_error
<<
s
if
error_count
<=
1
first_error
<<
s
if
error_count
<=
1
end
end
puts
"
\n
#{
first_error
}
"
if
Backtraces
puts
"
\n
#{
first_error
}
"
if
Backtraces
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment