Skip to content
This repository was archived by the owner on Sep 3, 2021. It is now read-only.

Commit e2df60c

Browse files
committed
chore: setup the testing environment
1 parent b2dfd41 commit e2df60c

File tree

3 files changed

+110
-0
lines changed

3 files changed

+110
-0
lines changed

bower.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "angular-testing-recipes",
3+
"version": "0.0.0",
4+
"homepage": "https://github.com/cironunes/angular-testing-recipes",
5+
"authors": [
6+
"Ciro Nunes <[email protected]>"
7+
],
8+
"license": "MIT",
9+
"ignore": [
10+
"**/.*",
11+
"node_modules",
12+
"bower_components",
13+
"test",
14+
"tests"
15+
],
16+
"dependencies": {
17+
"angular": "~1.3.8",
18+
"angular-mocks": "~1.3.8"
19+
}
20+
}

karma.conf.js

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
// Karma configuration
2+
// Generated on Wed Dec 24 2014 12:08:42 GMT-0200 (BRST)
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'],
14+
15+
16+
// list of files / patterns to load in the browser
17+
files: [
18+
'bower_components/angular/angular.js',
19+
'bower_components/angular-mocks/angular-mocks.js',
20+
'src/*.js',
21+
'test/*.js'
22+
],
23+
24+
25+
// list of files to exclude
26+
exclude: [
27+
],
28+
29+
30+
// preprocess matching files before serving them to the browser
31+
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
32+
preprocessors: {
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: true,
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+
};

package.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "angular-testing-recipes",
3+
"version": "0.0.0",
4+
"description": "angular-testing-recipes",
5+
"main": "index.js",
6+
"scripts": {},
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/cironunes/angular-testing-recipes.git"
10+
},
11+
"author": "Ciro Nunes",
12+
"license": "MIT",
13+
"bugs": {
14+
"url": "https://github.com/cironunes/angular-testing-recipes/issues"
15+
},
16+
"homepage": "https://github.com/cironunes/angular-testing-recipes",
17+
"devDependencies": {
18+
"karma": "^0.12.28",
19+
"karma-jasmine": "^0.3.3",
20+
"karma-phantomjs-launcher": "^0.1.4"
21+
}
22+
}

0 commit comments

Comments
 (0)