Running tests as usual against docker containers or dockerize tests?

前端 未结 3 1149
灰色年华
灰色年华 2021-02-04 06:51

I\'m new to Docker and was reading up on Docker. It\'s a great way to test systems in a self contained and reproducible standardized configuration (when done correctly).

3条回答
  •  情话喂你
    2021-02-04 07:06

    Look closely at the screenshot I provide on this page: https://github.com/djangofan/karate-test-prime-example This is an example project I made that shows how to do a test container in context with a service and returning an exit code at the end of the tests.

    Then when your code is released by a pipeline, before it goes live, your Docker container will include an exit code that allows your pipeline to decide whether to roll it back or not.

提交回复
热议问题