Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 6e236ec

Browse files
committed
debug; Add debug target
1 parent dfcb5ac commit 6e236ec

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

Gruntfile.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ module.exports = function(grunt) {
134134

135135

136136
tests: {
137+
debug: 'karma-debug.conf.js',
137138
jqlite: 'karma-jqlite.conf.js',
138139
jquery: 'karma-jquery.conf.js',
139140
'jquery-2.2': 'karma-jquery-2.2.conf.js',
@@ -144,6 +145,7 @@ module.exports = function(grunt) {
144145

145146

146147
autotest: {
148+
debug: 'karma-debug.conf.js',
147149
jqlite: 'karma-jqlite.conf.js',
148150
jquery: 'karma-jquery.conf.js',
149151
'jquery-2.2': 'karma-jquery-2.2.conf.js',
@@ -402,6 +404,7 @@ module.exports = function(grunt) {
402404
'tests:docs',
403405
'test:protractor'
404406
]);
407+
grunt.registerTask('test:debug', 'Run the unit tests with Karma' , ['tests:debug']);
405408
grunt.registerTask('test:jqlite', 'Run the unit tests with Karma' , ['tests:jqlite']);
406409
grunt.registerTask('test:jquery', 'Run the jQuery (latest) unit tests with Karma', ['tests:jquery']);
407410
grunt.registerTask('test:jquery-2.2', 'Run the jQuery 2.2 unit tests with Karma', ['tests:jquery-2.2']);

angularFiles.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,23 @@ var angularFiles = {
204204
'src/angular.bind.js'
205205
],
206206

207+
'debug': [
208+
'bower_components/jquery/dist/jquery.js',
209+
'test/jquery_remove.js',
210+
'@angularSrc',
211+
'@angularSrcModules',
212+
'@angularScenario',
213+
'test/helpers/*.js',
214+
'test/loaderSpec.js'
215+
],
216+
217+
'debugExclude': [
218+
'test/jquery_alias.js',
219+
'src/angular-bootstrap.js',
220+
'src/ngScenario/angular-bootstrap.js',
221+
'src/angular.bind.js'
222+
],
223+
207224
'karmaScenario': [
208225
'build/angular-scenario.js',
209226
'build/docs/docs-scenario.js'

karma-debug.conf.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
'use strict';
2+
3+
var angularFiles = require('./angularFiles');
4+
var sharedConfig = require('./karma-shared.conf');
5+
6+
module.exports = function(config) {
7+
sharedConfig(config, {testName: 'AngularJS: debug', logFile: 'karma-debug.log'});
8+
9+
config.set({
10+
files: angularFiles.mergeFilesFor('debug'),
11+
exclude: angularFiles.mergeFilesFor('debugExclude'),
12+
13+
junitReporter: {
14+
outputFile: 'test_out/debug.xml',
15+
suite: 'debug'
16+
}
17+
});
18+
};

0 commit comments

Comments
 (0)