Skip to content

Commit a6c9c8e

Browse files
authored
Merge pull request #557 from pankajparkar/unit-testcases
Added unit test cases for isteven multiselect directive.
2 parents d558989 + 6a152b9 commit a6c9c8e

File tree

7 files changed

+4480
-1
lines changed

7 files changed

+4480
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ See <a href="https://github.com/isteven/angular-multi-select/blob/master/CHANGEL
1515
For those who's upgrading from version 2.x.x, do note that this version is not backward-compatible. Please read the manual
1616
thoroughly and update your code accordingly.
1717

18+
### Test
19+
- Install all the packages using `npm i` command
20+
- Run `karma start` command to run test cases.
21+
1822
### Bug Reporting
1923
Please follow these steps:
2024

karma.conf.js

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
// Karma configuration
2+
// Generated on Thu Nov 09 2017 21:53:55 GMT+0530 (IST)
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+
// frameworks to use
11+
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
12+
frameworks: ['jasmine'],
13+
14+
// list of files / patterns to load in the browser
15+
files: [
16+
'./doc/js/libs/jquery.min.js',
17+
'./doc/js/libs/angular.min.js',
18+
'./doc/js/libs/isteven-multi-select.js',
19+
'./node_modules/angular-mocks/angular-mocks.js',
20+
'./spec/helpers/object-extention.js',
21+
'./spec/isteven-multi-select.spec.js'
22+
],
23+
24+
// list of files to exclude
25+
exclude: [
26+
],
27+
28+
reporters: ['progress'],
29+
30+
preprocessors: { },
31+
32+
// web server port
33+
port: 9876,
34+
35+
// enable / disable colors in the output (reporters and logs)
36+
colors: true,
37+
38+
// level of logging
39+
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
40+
logLevel: config.LOG_INFO,
41+
42+
// enable / disable watching file and executing tests whenever any file changes
43+
autoWatch: true,
44+
45+
// start these browsers
46+
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
47+
browsers: ['Chrome'],
48+
49+
// Continuous Integration mode
50+
// if true, Karma captures browsers, runs the tests and exits
51+
singleRun: false,
52+
53+
// Concurrency level
54+
// how many browser should be started simultaneous
55+
concurrency: Infinity
56+
})
57+
}

0 commit comments

Comments
 (0)