summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-12-29 08:18:29 +0100
committerJulius Härtl <jus@bitgrid.net>2020-12-29 08:42:27 +0100
commitc7a320d880e8275ebbd7c96022d173381e154bf4 (patch)
tree7cca66b1ea5d2379361c4060f972e8d201bdb437 /tests
parent14306222df3e7fe3b3dfeb1ab17a92deb4bf1520 (diff)
downloadnextcloud-server-c7a320d880e8275ebbd7c96022d173381e154bf4.tar.gz
nextcloud-server-c7a320d880e8275ebbd7c96022d173381e154bf4.zip
jsunit: Run jsunit with chromium/puppeteer on github actions
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'tests')
-rw-r--r--tests/karma.config.js27
1 files changed, 16 insertions, 11 deletions
diff --git a/tests/karma.config.js b/tests/karma.config.js
index 95392425f4d..c090148b283 100644
--- a/tests/karma.config.js
+++ b/tests/karma.config.js
@@ -33,6 +33,10 @@
* preprocessor, which is needed to be able to debug tests properly in a browser.
*/
+if (!process.env.CHROMIUM_BIN) {
+ process.env.CHROMIUM_BIN = require('puppeteer').executablePath()
+}
+
/* jshint node: true */
module.exports = function(config) {
function findApps() {
@@ -242,7 +246,16 @@ module.exports = function(config) {
// test results reporter to use
// possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
- reporters: ['dots', 'junit', 'coverage'],
+ reporters: ['spec'],
+
+ specReporter: {
+ maxLogLines: 5,
+ suppressErrorSummary: false,
+ suppressFailed: false,
+ suppressPassed: true,
+ suppressSkipped: true,
+ showSpecTiming: false,
+ },
junitReporter: {
outputFile: 'tests/autotest-results-js.xml'
@@ -281,16 +294,8 @@ module.exports = function(config) {
// - PhantomJS
// - IE (only Windows; has to be installed with `npm install karma-ie-launcher`)
// use PhantomJS_debug for extra local debug
- browsers: ['PhantomJS'],
-
- plugins: [
- 'karma-phantomjs-launcher',
- 'karma-coverage',
- 'karma-jasmine',
- 'karma-jasmine-sinon',
- 'karma-viewport',
- 'karma-junit-reporter'
- ],
+ browsers: ['ChromiumHeadless'],
+
// you can define custom flags
customLaunchers: {
PhantomJS_debug: {