source: cats/SCHEMAcat/trunk/urn.org.isocat.schemacat.site/site/test/karma/karma-e2e.conf.js @ 4159

Last change on this file since 4159 was 4159, checked in by andmor, 10 years ago

Added UI e2e testing.

File size: 1.2 KB
Line 
1// Karma configuration for end to end testing
2
3module.exports = function(config) {
4    config.set({
5
6
7        basePath: '../..',
8
9        files: [
10            'test/e2e/scenarios.js',
11            'test/lib/window-dialog-commands.js'
12        ],
13
14        reporters: ['progress', 'coverage', 'junit', 'osx'],
15
16        autoWatch: true,
17
18        browsers: ['Chrome', 'Firefox', 'Safari'],
19
20        frameworks: ['ng-scenario'],
21
22        singleRun: true,
23
24        proxies: {
25            '/schemacat': 'http://localhost:8080/schemacat'
26        },
27
28        plugins: [
29            'karma-junit-reporter',
30            'karma-chrome-launcher',
31            'karma-firefox-launcher',
32            'karma-safari-launcher',
33            'karma-jasmine',
34            'karma-coverage',
35            'karma-ng-scenario',
36            'karma-osx-reporter',
37            'karma-spec-reporter'
38        ],
39
40        junitReporter: {
41            outputFile: 'test/karma/test_out/test-results-e2e.xml',
42            suite: 'e2e'
43        },
44
45        // optionally, configure the reporter
46        coverageReporter: {
47            type: 'html',
48            dir: 'test/karma/test_out/coverage-e2e/'
49        },
50    });
51};
Note: See TracBrowser for help on using the repository browser.