-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(*): split tests into core, ng1, ng2
chore(*): use npm scripts for karma, not grunt
- Loading branch information
1 parent
95ae0cf
commit b3d3b56
Showing
42 changed files
with
929 additions
and
975 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// Karma configuration file | ||
|
||
var karma = require("karma"); | ||
var files = require('../files').files; | ||
|
||
var config = { | ||
|
||
singleRun: true, | ||
autoWatch: false, | ||
autoWatchInterval: 0, | ||
|
||
// level of logging | ||
// possible values: LOG_DISABLE, LOG_ERROR, LOG_WARN, LOG_INFO, LOG_DEBUG | ||
logLevel: "warn", | ||
// possible values: 'dots', 'progress' | ||
reporters: 'dots', | ||
colors: true, | ||
|
||
port: 8080, | ||
|
||
// base path, that will be used to resolve files and exclude | ||
basePath: '..', | ||
|
||
// Start these browsers, currently available: | ||
// Chrome, ChromeCanary, Firefox, Opera, Safari, PhantomJS | ||
browsers: ['PhantomJS'], | ||
|
||
frameworks: ['systemjs', 'jasmine'], | ||
|
||
plugins: [ | ||
require('karma-systemjs'), | ||
require('karma-jasmine'), | ||
require('karma-phantomjs-launcher'), | ||
require('karma-chrome-launcher') | ||
], | ||
|
||
systemjs: { | ||
// Set up systemjs paths | ||
configFile: 'config/system.config.js', | ||
files: ['src/**/*.ts'] | ||
}, | ||
exclude: [] | ||
}; | ||
|
||
module.exports = config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
// Karma configuration file | ||
var clone = require("clone"); | ||
var baseconfig = require("./_karma.base"); | ||
var files = require('../files').files; | ||
|
||
module.exports = function (ngVersion, testFileSuffix) { | ||
var config = clone(baseconfig); | ||
|
||
/* Files available to be served by karma, i.e., anything that will be require()'d */ | ||
config.files = files.karmaServedFiles(ngVersion); | ||
|
||
// karma-systemjs kludge: This is turned into a regexp and is the actual specs that are loaded | ||
config.systemjs.testFileSuffix = testFileSuffix; | ||
|
||
return config; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Karma configuration file | ||
var clone = require("clone"); | ||
var baseconfig = require("./_karma.base"); | ||
var files = require('../files').files; | ||
|
||
module.exports = function (karma) { | ||
var config = clone(baseconfig); | ||
|
||
/* Files available to be served, so anything that will be require()'d */ | ||
config.files = files.karmaServedFiles(); | ||
|
||
// karma-systemjs kludge: This is turned into a regexp and is the actual specs that are loaded | ||
config.systemjs.testFileSuffix = "/test/core/\\S+.[tj]s"; | ||
|
||
karma.set(config); | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
var ng1ConfigFactory = require("./_karma.ng1"); | ||
module.exports = function (karma) { | ||
karma.set(ng1ConfigFactory("1.2.28", "/test/ng1/\\S+.[tj]s")); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
var ng1ConfigFactory = require("./_karma.ng1"); | ||
module.exports = function (karma) { | ||
karma.set(ng1ConfigFactory("1.3.16", "/test/ng1/\\S+.[tj]s")); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
var ng1ConfigFactory = require("./_karma.ng1"); | ||
module.exports = function (karma) { | ||
karma.set(ng1ConfigFactory("1.4.9", "/test/ng1/\\S+.[tj]s")); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
var ng1ConfigFactory = require("./_karma.ng1"); | ||
module.exports = function (karma) { | ||
karma.set(ng1ConfigFactory("1.5.0", "/test/ng1/\\S+.[tj]s")); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,4 +72,4 @@ export class UIRouterGlobals { | |
|
||
transitionService.onBefore({}, ['$transition$', beforeNewTransition]); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.