Skip to content
This repository has been archived by the owner on Mar 21, 2022. It is now read-only.

More verbose test reporter #73

Merged
merged 1 commit into from Nov 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 13 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Expand Up @@ -26,6 +26,7 @@
"license": "Apache-2.0",
"dependencies": {
"cordova-common": "^3.0.0",
"jasmine-spec-reporter": "^4.2.1",
"nopt": "^3.0.6",
"q": "^1.4.1",
"shelljs": "^0.5.3",
Expand Down
3 changes: 3 additions & 0 deletions tests/spec/component.json
Expand Up @@ -3,6 +3,9 @@
"spec_files": [
"component/**/*[sS]pec.js"
],
"helpers": [
"helper.js"
],
"stopSpecOnExpectationFailure": false,
"random": false
}
3 changes: 3 additions & 0 deletions tests/spec/coverage.json
Expand Up @@ -4,6 +4,9 @@
"component/**/*[sS]pec.js",
"objc/**/*[sS]pec.js"
],
"helpers": [
"helper.js"
],
"stopSpecOnExpectationFailure": false,
"random": false
}
31 changes: 31 additions & 0 deletions tests/spec/helper.js
@@ -0,0 +1,31 @@
/**
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
*/
const SpecReporter = require('jasmine-spec-reporter').SpecReporter;

jasmine.getEnv().clearReporters();
jasmine.getEnv().addReporter(new SpecReporter({
spec: {
displayPending: true,
displayDuration: true
},
summary: {
displayDuration: true,
displayStacktrace: true
}
}));
3 changes: 3 additions & 0 deletions tests/spec/objc.json
Expand Up @@ -3,6 +3,9 @@
"spec_files": [
"objc/**/*[sS]pec.js"
],
"helpers": [
"helper.js"
],
"stopSpecOnExpectationFailure": false,
"random": false
}