UNPKG

bimplus-renderer

Version:

bim+ renderer

67 lines (56 loc) 2.33 kB
// Karma configuration // http://karma-runner.github.io/4.0/config/configuration-file.html const karmaSharedConfig = require('./karma-shared-config'); module.exports = function (config) { config.set({ // Merge with shared configuration ...karmaSharedConfig, // list of files / patterns to load in the browser files: [ {pattern: 'src/wasm/*.wasm', included: false, served: true, type: 'wasm'}, {pattern: 'bin/*.js', included: false, served: true/*, type: 'wasm'*/}, //'bin/**/*.js', 'src/**/*.js', 'modelviewer-data-driven-tests/tests**/*.js', ], // preprocess matching files before serving them to the browser // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor preprocessors: { 'src/**/*.js': [ 'webpack', ], 'modelviewer-data-driven-tests/**/*.js': [ 'webpack', ], }, // test results reporter to use // possible values: 'dots', 'progress' // available reporters: https://npmjs.org/browse/keyword/karma-reporter reporters: [ 'progress' ], // client configuration client: { clearContext: false, // QUnit options for QUnit.config // https://api.qunitjs.com/config/QUnit.config qunit: { // Show list of all running tests in browser showUI: true, testTimeout: 6000000, // requireExpects: true, // The expect() method is optional by default fixture: null, // Don't clear the qunit-fixture div after each test - we try to reuse the webgl context } }, // level of logging // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG logLevel: config.LOG_INFO, //logLevel: config.LOG_DEBUG, // start these browsers // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher // browsers: ['Chrome'], browsers: [ //'Chrome', //'ChromeHeadless', //It is currently not possible to run the tests in headless mode due to random stalls // 'Firefox', // Use only one browser for test run to get correct code coverage output 'Firefox', // this will split tests between browsers //'FirefoxHeadless', ], }) }