Skip to content

Commit 9a9a1ac

Browse files
authored
Run frontend Karma tests during the Maven test phase (#902)
1 parent 958caaa commit 9a9a1ac

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

openam-ui/openam-ui-ria/Gruntfile.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,7 @@ module.exports = function (grunt) {
374374
"less",
375375
"replace",
376376
"copy:compiled",
377-
"copy:transpiled",
378-
"karma:build"
377+
"copy:transpiled"
379378
]);
380379

381380
grunt.registerTask("dev", ["copy:compose", "babel", "deploy", "watch"]);

openam-ui/openam-ui-ria/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"jsdoc": "jsdoc --configure config/jsdoc/configuration.json",
1010
"start": "grunt",
1111
"build:production": "cross-env NODE_ENV=production grunt prod --verbose",
12-
"test": "grunt karma:dev",
12+
"test": "grunt karma:build",
1313
"predeps": "npm run clean:deps -s",
1414
"deps": "ncu -u && mvn clean install",
1515
"postdeps": "npm shrinkwrap --dev"

openam-ui/openam-ui-ria/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,16 @@
328328
<arguments>run build:production -- --target-version=${project.version}</arguments>
329329
</configuration>
330330
</execution>
331+
<execution>
332+
<id>npm-test</id>
333+
<goals>
334+
<goal>npm</goal>
335+
</goals>
336+
<phase>test</phase>
337+
<configuration>
338+
<arguments>run test</arguments>
339+
</configuration>
340+
</execution>
331341
</executions>
332342
</plugin>
333343
<plugin>

0 commit comments

Comments
 (0)