karma now running. tests not using mock $httpBackend yet

This commit is contained in:
Cameron Dawson 2013-08-29 10:49:02 -07:00
Родитель 1bc1d06c71
Коммит b6f7566bf7
2 изменённых файлов: 55 добавлений и 39 удалений

Просмотреть файл

@ -1,22 +1,36 @@
basePath = '../';
module.exports = function (config) {
config.set({
frameworks: ['requirejs'],
files = [
ANGULAR_SCENARIO,
ANGULAR_SCENARIO_ADAPTER,
'test/e2e/**/*.js'
];
basePath: '../',
autoWatch = false;
files: [
'app/vendor/angular/angular.js',
'app/vendor/angular/angular-*.js',
'app/vendor/*.js',
'app/js/**/*.js',
'app/js/controllers/**/*.js',
'test/vendor/angular/angular-mocks.js',
'test/vendor/jquery-2.0.3.js',
'test/vendor/jasmine-jquery.js',
'test/e2e/**/*.js',
browsers = ['Chrome'];
// fixtures
{pattern: 'app/resources/*.json', watched: true, served: true, included: false}
],
singleRun = true;
autoWatch: false,
singleRun: true,
proxies = {
'/': 'http://localhost:8000/'
};
junitReporter = {
outputFile: 'test_out/e2e.xml',
suite: 'e2e'
browsers: ['Firefox'],
proxies: {
'/': 'http://localhost:8000/'
},
junitReporter: {
outputFile: 'test_out/e2e.xml',
suite: 'e2e'
}
});
};

Просмотреть файл

@ -1,30 +1,32 @@
frameworks = ['jasmine'];
module.exports = function (config) {
config.set({
frameworks: ['jasmine'],
basePath = '../';
basePath: '../',
files = [
JASMINE,
JASMINE_ADAPTER,
'app/vendor/angular/angular.js',
'app/vendor/angular/angular-*.js',
'app/vendor/*.js',
'app/js/**/*.js',
'app/js/controllers/**/*.js',
'test/vendor/angular/angular-mocks.js',
'test/vendor/jquery-2.0.3.js',
'test/vendor/jasmine-jquery.js',
'test/unit/**/*.js',
files: [
'app/vendor/angular/angular.js',
'app/vendor/angular/angular-*.js',
'app/vendor/*.js',
'app/js/**/*.js',
'app/js/controllers/**/*.js',
'test/vendor/angular/angular-mocks.js',
'test/vendor/jquery-2.0.3.js',
'test/vendor/jasmine-jquery.js',
'test/unit/**/*.js',
// fixtures
{pattern: 'app/resources/*.json', watched: true, served: true, included: false}
];
// fixtures
{pattern: 'app/resources/*.json', watched: true, served: true, included: false}
],
autoWatch = false;
singleRun = true;
autoWatch: false,
singleRun: true,
browsers = ['Firefox'];
browsers: ['Firefox'],
junitReporter = {
outputFile: 'test_out/unit.xml',
suite: 'unit'
junitReporter: {
outputFile: 'test_out/unit.xml',
suite: 'unit'
}
});
};