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

Update tests to Intern 4 #100

Merged
merged 6 commits into from
Oct 17, 2017
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ install:
- travis_retry npm install
script:
- grunt
- grunt intern:node --combined
- grunt intern:saucelabs --combined
- grunt remapIstanbul:ci
- grunt intern:saucelabs
- grunt uploadCoverage
- grunt doc
notifications:
Expand Down
3 changes: 3 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ module.exports = function (grunt) {
options: {
ignoreCompilerErrors: true // Remove this once compile errors are resolved
}
},
intern: {
version: 4
}
});
};
87 changes: 87 additions & 0 deletions intern.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"environments": [
{ "browserName": "node" }
],
"suites": [
"./_build/tests/unit/**/*.js"
],
"functionalSuites": [
"./_build/tests/functional/**/*.js"
],
"loader": {
"script": "dojo2",
"options": {
"packages": [
{ "name": "src", "location": "_build/src" },
{ "name": "tests", "location": "_build/tests" },
{ "name": "cldr-data", "location": "node_modules/cldr-data" },
{ "name": "cldrjs", "location": "node_modules/cldrjs" },
{ "name": "@dojo", "location": "node_modules/@dojo" },
{ "name": "globalize", "location": "node_modules/globalize", "main": "dist/globalize" },
{ "name": "sinon", "location": "node_modules/sinon/pkg", "main": "sinon" },
{ "name": "grunt-dojo2", "location": "node_modules/grunt-dojo2" }
],
"map": {
"globalize": {
"cldr": "cldrjs/dist/cldr",
"cldr/event": "cldrjs/dist/cldr/event",
"cldr/supplemental": "cldrjs/dist/cldr/supplemental",
"cldr/unresolved": "cldrjs/dist/cldr/unresolved"
}
}
}
},
"configs": {
"coverage": {
"coverage": [
"./_build/src/**/*.js"
]
},
"remoteCapabilities": {
"project": "Dojo 2",
"name": "@dojo/i18n"
},
"local": {
"extends": [ "coverage" ],
"tunnel": "selenium",
"environments+": [
{ "browserName": "chrome" }
]
},
"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" },
{ "browserName": "safari", "version": "9.1", "platform": "MAC" }
// BrowserStack uses iOS 9.1 and some of the tests fail. I looks like a missing locale problem
// { "browserName": "iPhone" }
]
},
"saucelabs": {
"extends": [ "coverage", "remoteCapabilities" ],

"tunnel": "saucelabs",
"capabilities+": {
"fixSessionCapabilities": false
},

"defaultTimeout": 10000,
"environments+": [
{ "browserName": "internet explorer", "version": [ "10.0", "11.0" ], "platform": "Windows 7" },
{ "browserName": "microsoftedge", "platform": "Windows 10" },
{ "browserName": "firefox", "platform": "Windows 10" },
{ "browserName": "chrome", "platform": "Windows 10" },
{ "browserName": "safari", "version": "9", "platform": "OS X 10.11" }
],
"maxConcurrency": 4
}
}
}
Loading