Skip to content

Commit 2c3a3bc

Browse files
author
Matt Zabriskie
committed
Adding testing config
1 parent d29c1ac commit 2c3a3bc

File tree

2 files changed

+74
-0
lines changed

2 files changed

+74
-0
lines changed

.travis.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
language: node_js
2+
email:
3+
on_failure: change
4+
on_success: never
5+
before_script:
6+
- npm install -g grunt-cli

karma.conf.js

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
// Karma configuration
2+
// Generated on Fri Aug 15 2014 23:11:13 GMT-0500 (CDT)
3+
4+
module.exports = function(config) {
5+
config.set({
6+
7+
// base path that will be used to resolve all patterns (eg. files, exclude)
8+
basePath: '',
9+
10+
11+
// frameworks to use
12+
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
13+
frameworks: ['jasmine-ajax', 'jasmine'],
14+
15+
16+
// list of files / patterns to load in the browser
17+
files: [
18+
'dist/axios.js',
19+
'specs/axios.spec.js'
20+
],
21+
22+
23+
// list of files to exclude
24+
exclude: [
25+
26+
],
27+
28+
29+
// preprocess matching files before serving them to the browser
30+
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
31+
preprocessors: {
32+
33+
},
34+
35+
36+
// test results reporter to use
37+
// possible values: 'dots', 'progress'
38+
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
39+
reporters: ['progress'],
40+
41+
42+
// web server port
43+
port: 9876,
44+
45+
46+
// enable / disable colors in the output (reporters and logs)
47+
colors: true,
48+
49+
50+
// level of logging
51+
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
52+
logLevel: config.LOG_INFO,
53+
54+
55+
// enable / disable watching file and executing tests whenever any file changes
56+
autoWatch: false,
57+
58+
59+
// start these browsers
60+
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
61+
browsers: ['PhantomJS'],
62+
63+
64+
// Continuous Integration mode
65+
// if true, Karma captures browsers, runs the tests and exits
66+
singleRun: false
67+
});
68+
};

0 commit comments

Comments
 (0)