@@ -43,6 +43,10 @@ if(argv.info) {
43
43
' No need to add the `_test.js` suffix, we expand them correctly here.' ,
44
44
' - `--bundleTest` set the bundle test suite `test/jasmine/bundle_tests/ to be run.' ,
45
45
' Note that only one bundle test can be run at a time.' ,
46
+ ' - Use `--tags` to specify which `@` tags to test (if any) e.g `npm run test-jasmine -- --tags=gl`' ,
47
+ ' will run only gl tests.' ,
48
+ ' - Use `--skip-tags` to specify which `@` tags to skip (if any) e.g `npm run test-jasmine -- --skip-tags=gl`' ,
49
+ ' will skip all gl tests.' ,
46
50
'' ,
47
51
'Other options:' ,
48
52
' - `--info`: show this info message' ,
@@ -101,9 +105,7 @@ var pathToJQuery = path.join(__dirname, 'assets', 'jquery-1.8.3.min.js');
101
105
var pathToIE9mock = path . join ( __dirname , 'assets' , 'ie9_mock.js' ) ;
102
106
var pathToCustomMatchers = path . join ( __dirname , 'assets' , 'custom_matchers.js' ) ;
103
107
104
-
105
108
function func ( config ) {
106
-
107
109
// level of logging
108
110
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
109
111
//
@@ -202,9 +204,17 @@ func.defaultConfig = {
202
204
debug : true
203
205
} ,
204
206
205
- // unfortunately a few tests don't behave well on CI
206
- // using `karma-jasmine-spec-tags`
207
+ // Options for `karma-jasmine-spec-tags`
208
+ // see https://www.npmjs.com/package/karma-jasmine-spec-tags
209
+ //
210
+ // A few tests don't behave well on CI
207
211
// add @noCI to the spec description to skip a spec on CI
212
+ //
213
+ // Label tests that require a WebGL-context by @gl so that
214
+ // they can be skipped using:
215
+ // - $ npm run test-jasmine -- --skip-tags=gl
216
+ // or run is isolation easily using:
217
+ // - $ npm run test-jasmine -- --tags=gl
208
218
client : {
209
219
tagPrefix : '@' ,
210
220
skipTags : isCI ? 'noCI' : null
0 commit comments