Skip to content

Commit 989b4cc

Browse files
Chris Brodyraphinesse
Chris Brody
andauthoredJul 14, 2019
test: use verbose spec reporter (#778)
Co-authored-by: Christopher J. Brody <chris@brody.consulting> Co-authored-by: Raphael von der Grün <raphinesse@users.noreply.github.com>
1 parent 38c6627 commit 989b4cc

File tree

5 files changed

+41
-0
lines changed

5 files changed

+41
-0
lines changed
 

‎package.json

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"eslint-plugin-promise": "^4.0.1",
4646
"eslint-plugin-standard": "^4.0.0",
4747
"jasmine": "^3.3.1",
48+
"jasmine-spec-reporter": "^4.2.1",
4849
"nyc": "^14.1.1",
4950
"rewire": "^4.0.1"
5051
},

‎spec/coverage.json

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"unit/**/*[sS]pec.js",
55
"e2e/**/*[sS]pec.js"
66
],
7+
"helpers": [
8+
"helper.js"
9+
],
710
"stopSpecOnExpectationFailure": false,
811
"random": false
912
}

‎spec/e2e/jasmine.json

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
"spec_files": [
44
"e2e/**/*[sS]pec.js"
55
],
6+
"helpers": [
7+
"helper.js"
8+
],
69
"stopSpecOnExpectationFailure": false,
710
"random": false
811
}

‎spec/helper.js

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/**
2+
Licensed to the Apache Software Foundation (ASF) under one
3+
or more contributor license agreements. See the NOTICE file
4+
distributed with this work for additional information
5+
regarding copyright ownership. The ASF licenses this file
6+
to you under the Apache License, Version 2.0 (the
7+
"License"); you may not use this file except in compliance
8+
with the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing,
13+
software distributed under the License is distributed on an
14+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
KIND, either express or implied. See the License for the
16+
specific language governing permissions and limitations
17+
under the License.
18+
*/
19+
const SpecReporter = require('jasmine-spec-reporter').SpecReporter;
20+
21+
jasmine.getEnv().clearReporters();
22+
jasmine.getEnv().addReporter(new SpecReporter({
23+
spec: {
24+
displayPending: true,
25+
displayDuration: true
26+
},
27+
summary: {
28+
displayDuration: true,
29+
displayStacktrace: true
30+
}
31+
}));

‎spec/unit/jasmine.json

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
"spec_files": [
44
"unit/**/*[sS]pec.js"
55
],
6+
"helpers": [
7+
"helper.js"
8+
],
69
"stopSpecOnExpectationFailure": false,
710
"random": true
811
}

0 commit comments

Comments
 (0)