mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-11 03:40:20 +00:00
Add unit tests for AdminCreateOrderCycleCtrl angular controller
This commit is contained in:
22
config-angular/testacular-e2e.conf.js
Normal file
22
config-angular/testacular-e2e.conf.js
Normal file
@@ -0,0 +1,22 @@
|
||||
basePath = '../';
|
||||
|
||||
files = [
|
||||
ANGULAR_SCENARIO,
|
||||
ANGULAR_SCENARIO_ADAPTER,
|
||||
'test/e2e/**/*.js'
|
||||
];
|
||||
|
||||
autoWatch = false;
|
||||
|
||||
browsers = ['Chrome'];
|
||||
|
||||
singleRun = true;
|
||||
|
||||
proxies = {
|
||||
'/': 'http://localhost:8000/'
|
||||
};
|
||||
|
||||
junitReporter = {
|
||||
outputFile: 'test_out/e2e.xml',
|
||||
suite: 'e2e'
|
||||
};
|
||||
24
config-angular/testacular.conf.js
Normal file
24
config-angular/testacular.conf.js
Normal file
@@ -0,0 +1,24 @@
|
||||
basePath = '../';
|
||||
|
||||
files = [
|
||||
JASMINE,
|
||||
JASMINE_ADAPTER,
|
||||
'app/assets/javascripts/shared/angular.js',
|
||||
'app/assets/javascripts/shared/angular-*.js',
|
||||
//'test/lib/angular/angular-mocks.js',
|
||||
|
||||
'app/assets/javascripts/admin/order_cycle.js.erb',
|
||||
|
||||
'spec/javascripts/unit/**/*.js*'
|
||||
];
|
||||
|
||||
exclude = ['**/.#*']
|
||||
|
||||
autoWatch = true;
|
||||
|
||||
browsers = ['Chrome'];
|
||||
|
||||
junitReporter = {
|
||||
outputFile: 'log/testacular-unit.xml',
|
||||
suite: 'unit'
|
||||
};
|
||||
Reference in New Issue
Block a user