@@ -43,6 +43,10 @@ if(argv.info) {
4343 ' No need to add the `_test.js` suffix, we expand them correctly here.' ,
4444 ' - `--bundleTest` set the bundle test suite `test/jasmine/bundle_tests/ to be run.' ,
4545 ' 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.' ,
4650 '' ,
4751 'Other options:' ,
4852 ' - `--info`: show this info message' ,
@@ -101,9 +105,7 @@ var pathToJQuery = path.join(__dirname, 'assets', 'jquery-1.8.3.min.js');
101105var pathToIE9mock = path . join ( __dirname , 'assets' , 'ie9_mock.js' ) ;
102106var pathToCustomMatchers = path . join ( __dirname , 'assets' , 'custom_matchers.js' ) ;
103107
104-
105108function func ( config ) {
106-
107109 // level of logging
108110 // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
109111 //
@@ -202,9 +204,17 @@ func.defaultConfig = {
202204 debug : true
203205 } ,
204206
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
207211 // 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
208218 client : {
209219 tagPrefix : '@' ,
210220 skipTags : isCI ? 'noCI' : null
0 commit comments