guard-jasmine 1.15.0 → 1.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bca4b769bafa5bfe03973a17312eb2a18afebea1
|
4
|
+
data.tar.gz: ae5294a61eaf4f7c5c9694a160a316a66c315ed4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c75ad5d7f77540d49efd89755a8d7cd7c9c1170bbec5ee1b3f5fac6055874706b956e967e221c1f5f98ca3adf1be144c985535e3e148e03c3f3def5056c4e0f0
|
7
|
+
data.tar.gz: e4f29f936ca7da08c65b4ba2f7f933105dcf1bc60593a79fba941df2d97df8a0183b663ab104fd7d7d459f306d44e3ecc3ad25e4ad34135c387974c019d79760
|
data/README.md
CHANGED
@@ -563,6 +563,20 @@ execute a partial spec run it reports a lower coverage for the excluded files, s
|
|
563
563
|
Guard::Jasmine tries to work around this by merge only the coverage data for the changed files (Istanbul knows the file
|
564
564
|
name in opposite to Jasmine).
|
565
565
|
|
566
|
+
#### Jenkins CI integration
|
567
|
+
|
568
|
+
You can use the Cobertura format to bring coverage support to Jenkins CI, even that Guard::Jasmine has no built in
|
569
|
+
support for it. The trick is to preprocess the coverage data with istanbul after the spec run:
|
570
|
+
|
571
|
+
```ruby
|
572
|
+
desc "Run all JavaScript specs with Istanbul"
|
573
|
+
task :jscov => :environment do
|
574
|
+
# Run Jasmine tests with code coverage on and generate Jenkins-compatible Jasmine code coverage
|
575
|
+
# report file. For some reason does not work if run as 2 separate exec's, so combine into one.
|
576
|
+
exec('guard-jasmine --coverage --coverage-html --coverage-summary; istanbul report cobertura')
|
577
|
+
end
|
578
|
+
```
|
579
|
+
|
566
580
|
### System notifications options
|
567
581
|
|
568
582
|
These options affects what system notifications are shown after a spec run:
|
@@ -39,9 +39,9 @@ page.onConsoleMessage = (msg, line, source) ->
|
|
39
39
|
|
40
40
|
else if /^SPEC_START: (\d+)$/.test(msg)
|
41
41
|
currentSpecId = Number(RegExp.$1)
|
42
|
-
logs[currentSpecId] = []
|
43
42
|
|
44
43
|
else
|
44
|
+
logs[currentSpecId] ||= []
|
45
45
|
logs[currentSpecId].push(msg)
|
46
46
|
|
47
47
|
# Initialize the page before the JavaScript is run.
|
@@ -68,7 +68,7 @@ page.open options.url, (status) ->
|
|
68
68
|
phantom.exit()
|
69
69
|
else
|
70
70
|
runnerAvailable = page.evaluate -> window.jasmine
|
71
|
-
|
71
|
+
|
72
72
|
if runnerAvailable
|
73
73
|
done = -> phantom.exit()
|
74
74
|
waitFor specsReady, done, options.timeout
|
@@ -1,4 +1,3 @@
|
|
1
|
-
// Generated by CoffeeScript 1.3.3
|
2
1
|
(function() {
|
3
2
|
var currentSpecId, errors, logs, options, page, specsReady, waitFor;
|
4
3
|
|
@@ -42,9 +41,9 @@
|
|
42
41
|
return window.resultReceived = true;
|
43
42
|
});
|
44
43
|
} else if (/^SPEC_START: (\d+)$/.test(msg)) {
|
45
|
-
currentSpecId = Number(RegExp.$1);
|
46
|
-
return logs[currentSpecId] = [];
|
44
|
+
return currentSpecId = Number(RegExp.$1);
|
47
45
|
} else {
|
46
|
+
logs[currentSpecId] || (logs[currentSpecId] = []);
|
48
47
|
return logs[currentSpecId].push(msg);
|
49
48
|
}
|
50
49
|
};
|
data/lib/guard/jasmine/server.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-jasmine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.15.
|
4
|
+
version: 1.15.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Kessler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-04-
|
11
|
+
date: 2013-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: guard
|