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
2c462d18
Commit
2c462d18
authored
May 23, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Specs] Only print the count of the disabled specs in the summary.
parent
5e57791c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
bacon.rb
spec/spec_helper/bacon.rb
+2
-3
No files found.
spec/spec_helper/bacon.rb
View file @
2c462d18
...
@@ -38,6 +38,7 @@ module Bacon
...
@@ -38,6 +38,7 @@ module Bacon
#:nodoc:
#:nodoc:
def
handle_summary
def
handle_summary
print
ErrorLog
if
Backtraces
print
ErrorLog
if
Backtraces
puts
"
\e
[33m
#{
Counter
[
:disabled
]
}
disabled specifications
\n\e
[0m"
unless
Counter
[
:disabled
].
zero?
puts
"%d specifications (%d requirements), %d failures, %d errors"
%
puts
"%d specifications (%d requirements), %d failures, %d errors"
%
Counter
.
values_at
(
:specifications
,
:requirements
,
:failed
,
:errors
)
Counter
.
values_at
(
:specifications
,
:requirements
,
:failed
,
:errors
)
end
end
...
@@ -61,10 +62,8 @@ module Bacon
...
@@ -61,10 +62,8 @@ module Bacon
class
Context
class
Context
def
xit
(
description
,
*
args
)
def
xit
(
description
,
*
args
)
Counter
[
:disabled
]
+=
1
Bacon
.
handle_requirement
(
description
,
true
)
{[]}
Bacon
.
handle_requirement
(
description
,
true
)
{[]}
title
=
"
\e
[33m> Disabled Specificiations
\e
[0m"
ErrorLog
.
insert
(
0
,
"
#{
title
}
\n
"
)
unless
ErrorLog
.
include?
(
title
)
ErrorLog
.
insert
(
title
.
length
,
"
\n
-
#{
self
.
name
}
#{
description
}
"
)
end
end
end
end
end
end
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