diff --git a/Jenkinsfile b/Jenkinsfile index 7e30c3a..d865dd0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,7 +23,7 @@ pipeline { steps { dir('audioshowkit') { nodejs('NodeJS (17.4.0)') { - sh "npm run test" + sh "npm run test:junit" } junit 'junit/*.xml' } diff --git a/audioshowkit/package.json b/audioshowkit/package.json index e3390d9..82cc5e5 100644 --- a/audioshowkit/package.json +++ b/audioshowkit/package.json @@ -9,7 +9,9 @@ "build:prod": "webpack --config webpack.prod.cjs", "build:dev": "webpack --config webpack.dev.cjs", "build": "webpack --config webpack.dev.cjs", - "test": "mocha tests/** --reporter mocha-junit-reporter --reporter-options mochaFile=./junit/test_results.xml", + "test:junit": "mocha tests/** --reporter mocha-junit-reporter --reporter-options mochaFile=./junit/test_results.xml", + "test:console": "mocha tests/**", + "test": "mocha tests/**", "docs": "esdoc" }, "author": "", @@ -33,4 +35,4 @@ "webpack-cli": "^4.9.2", "webpack-merge": "^5.8.0" } -} +} \ No newline at end of file diff --git a/audioshowkit/tests/testcolors.js b/audioshowkit/tests/testColors.js similarity index 100% rename from audioshowkit/tests/testcolors.js rename to audioshowkit/tests/testColors.js