Skip to content
This repository has been archived by the owner on Jul 30, 2018. It is now read-only.

Commit

Permalink
Update tests to Intern 4 (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanforbes authored Oct 16, 2017
1 parent fa0acb5 commit 208b419
Show file tree
Hide file tree
Showing 63 changed files with 4,440 additions and 4,336 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ install:
- travis_retry npm install
script:
- grunt
- grunt intern:node --combined
- grunt intern:browserstack --combined
- grunt remapIstanbul:ci
- grunt intern:browserstack
- grunt uploadCoverage
- if [ "$TRAVIS_BRANCH" = "master" ]; then grunt doc; fi
notifications:
Expand Down
3 changes: 3 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ module.exports = function (grunt) {
options: {
ignoreCompilerErrors: true, // Remove this once compile errors are resolved
}
},
intern: {
version: 4
}
});
};
125 changes: 125 additions & 0 deletions intern.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
{
"environments": [
{ "browserName": "node" }
],

"suites": [
"./_build/tests/unit/all.js"
],

"functionalSuites": [
"./_build/tests/functional/all.js"
],

"plugins": [
"./_build/tests/plugins/echo-service.js"
],

"browser": {
"loader": {
"script": "dojo2",
"options": {
"packages": [
{ "name": "src", "location": "_build/src" },
{ "name": "tests", "location": "_build/tests" },
{ "name": "@dojo", "location": "node_modules/@dojo" },
{ "name": "sinon", "location": "node_modules/sinon/pkg", "main": "sinon" }
]
}
},

"suites+": [
"./_build/tests/unit/all-browser.js"
]
},

"node": {
"suites+": [
"./_build/tests/unit/all-node.js"
]
},

"configs": {
"coverage": {
"coverage": [
"./_build/src/**/*.js"
]
},

"remoteCapabilities": {
"capabilities": {
"project": "Dojo 2",
"name": "@dojo/core",
"fixSessionCapabilities": false
}
},

"browserstack": {
"extends": [ "coverage", "remoteCapabilities" ],

"tunnel": "browserstack",
"capabilities+": {
"browserstack.debug": false
},

"environments+": [
{ "browserName": "internet explorer", "version": "11" },
{ "browserName": "edge" },
{ "browserName": "firefox", "platform": "WINDOWS" },
{ "browserName": "chrome", "platform": "WINDOWS" }
],

"maxConcurrency": 5
},

"node-loader": {
"extends": [ "coverage" ],

"node": {
"loader": {
"script": "dojo2",
"options": {
"packages": [
{ "name": "src", "location": "_build/src" },
{ "name": "tests", "location": "_build/tests" },
{ "name": "@dojo", "location": "node_modules/@dojo" },
{ "name": "sinon", "location": "node_modules/sinon/pkg", "main": "sinon" }
]
}
},
"suites+": [
"./_build/tests/unit/all-node-loader.js"
]
}
},

"local": {
"extends": [ "coverage", "remoteCapabilities" ],

"tunnel": "selenium",
"tunnelOptions": {
"hostname": "localhost",
"port": 4444
},

"environments+": [
{ "browserName": "chrome" }
]
},

"saucelabs": {
"extends": [ "coverage", "remoteCapabilities" ],

"tunnel": "saucelabs",
"tunnelOptions": {},

"defaultTimeout": 10000,
"environments+": [
{ "browserName": "internet explorer", "version": [ "11.0" ], "platform": "Windows 7" },
{ "browserName": "firefox", "version": "43", "platform": "Windows 10" },
{ "browserName": "chrome", "platform": "Windows 10" }
],
"maxConcurrency": 4
}
}
}
Loading

0 comments on commit 208b419

Please sign in to comment.