kolodny / safetest

MIT License
1.31k stars 31 forks source link

Running safetest in docker and ci #23

Closed MartinFerret closed 2 months ago

MartinFerret commented 2 months ago

Working on windows, the target url is specified in setup-safetest.js. When I test locally with localhost, it works like a charm. When I test with a deployed web app url, also.

What would be the process to run the test inside a dockerized application whithin a CI/CD ? What should be the target url ? For now, I can't make it work.

Thanks !

kolodny commented 2 months ago

It depends on where the running application is living, if it's on the CI machine then using localhost should just work, else you'll need to specify a different url, perhaps in a setup-safetest-ci.js or something similar that the npm script will use instead