mercredi 20 juillet 2022

Chrome launcher not installed on Jenkins

I have a problem with running ember test on Jenkins, i am currently trying to generate a code coverage report for my app using ember-cli-code-coverage and locally everything works fine with running COVERAGE=true ember test but when i run the same command in Jenkins, i got Launcher Chrome not found. Not installed? i also try to run ember test in ci mode and i got the same error

This is testem.js

module.exports = {
    test_page: 'tests/index.html?hidepassed',
    disable_watching: true,
    launch_in_ci: ['Chrome'],
    launch_in_dev: ['Chrome'],
    browser_start_timeout: 120,
    browser_args: {
        Chrome: {
            ci: [
                // --no-sandbox is needed when running Chrome inside a container
                process.env.CI ? '--no-sandbox' : null,
                '--headless',
                '--disable-gpu',
                '--disable-dev-shm-usage',
                '--mute-audio',
                '--window-size=1440,900',
                '--remote-debugging-port=9222',
                '--remote-debugging-address=0.0.0.0',
                '--no-sandbox',
                '--user-data-dir=/tmp',
            ].filter(Boolean),
        },
    },
};

any idea how i can fix this ?

Screenshot of Jenkins errors

[1]: https://i.stack.imgur.com/HlYKQ.png




Aucun commentaire:

Enregistrer un commentaire