<@U822EMCSH> This is how I debug tests: My tests a...
# javascript
g
@albertgao This is how I debug tests: My tests are done with karma -> mocha -> qunit. When I need to do some debugging, I use this karma configuraton:
Copy code
module.exports = function(config) {
    config.set({
        frameworks: ['qunit', 'browserify'],
        reporters: ['mocha'],
        files: [
            'build/classes/kotlin/main/*.js',
            'build/classes/kotlin/test/*.js',
            'build/node_modules/*.js',
            {pattern: 'build/classes/kotlin/test/*.json', watched: true, served: true, included: false}
        ],      
        colors: true,
        logLevel: config.LOG_INFO,
        browsers: [
            // 'ChromeHeadless',
            // 'PhantomJS',
            'Chrome'
        ],
        // singleRun: true,
        singleRun: false,
        autoWatch: false,
        captureTimeout: 5000,

        // singleRun: false, // Karma captures browsers, runs the tests and exits

        preprocessors: {
            '**/*.js': ['browserify']
        }
    })
};
Using Chrome instead of PhantomJS or ChromeHeadless with
singleRun: false
will launch chrome with the debug interface. You can then launch the test and use the chrome dev tools.
a
Thanks for the tricks! Such a configuration.
g
This was the reason and the subject of my conf 😉.

https://www.youtube.com/watch?list=PLQ176FUIyIUY6UK1cgVsbdPYA3X5WLam5&amp;time_continue=136&amp;v=1Pu0TYJJ2Twâ–¾