gemini-testing / testplane

Testplane (ex-hermione) browser test runner based on mocha and wdio
https://testplane.io
MIT License
687 stars 62 forks source link

feat: add ability to use dev server #909

Closed KuznetsovRoman closed 4 months ago

KuznetsovRoman commented 4 months ago

Added ability to specify dev server in config file: Example

const SERVER_PORT = 3000;
...
module.exports = {
    ...
    devServer: {
        command: "npm run server:dev",
        env: {PORT: SERVER_PORT},
        readinessProbe: {
            url: `http://localhost:${SERVER_PORT}/health`
        }
    }
}

Command could also be node some/file.js or something else