File tree 2 files changed +14
-13
lines changed
lib/guard/jasmine/phantomjs
2 files changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class ConsoleReporter
14
14
}
15
15
16
16
specCount : 0
17
- currentSpecs : []
17
+ currentSpecs : {}
18
18
nestedSuiteResults : {}
19
19
20
20
# Report the start of a spec.
@@ -42,7 +42,8 @@ class ConsoleReporter
42
42
specResult[' messages' ] = messages if messages .length isnt 0
43
43
44
44
@specCount += 1
45
- @currentSpecs .push specResult
45
+ @currentSpecs [spec .suite .id ] or= []
46
+ @currentSpecs [spec .suite .id ].push specResult
46
47
47
48
# Report results from a suite.
48
49
#
@@ -55,7 +56,7 @@ class ConsoleReporter
55
56
parent : suite .parentSuite ? .id
56
57
description : suite .description
57
58
passed : suite .results ().failedCount is 0
58
- specs : @currentSpecs
59
+ specs : @currentSpecs [ suite . id ]
59
60
suites : []
60
61
}
61
62
@@ -70,8 +71,6 @@ class ConsoleReporter
70
71
if suiteResult .specs .length isnt 0 || suiteResult .suites .length isnt 0
71
72
@runnerResult .suites .push suiteResult
72
73
73
- @currentSpecs = []
74
-
75
74
# Report results from the runner.
76
75
#
77
76
# @param runner [jasmine.Runner] the runner
You can’t perform that action at this time.
0 commit comments