Skip to content

Run test suite at container startup #11

@nuest

Description

@nuest

Is it possible to run a test suite at the startup of a Docker container?

I've found this example but wonder if there is a way this could be supported out of the box for all services.

Something like

docker run --rm -it -e TEST_ENDPOINT=http://localhost:8080/wms opengis/teamengine-ets-wms-13 run-all.sh

I don't see how Running a test-suite non-interactively could be done in the container. Ideally the exit status would communicate the test result.

[Disclaimer: I'm a teamengine noob, and also not able to contribute extensively myself. Just would play around with this if it's available easily.]

What would this be useful for?
One could pull the image and run the above command in an automated test environment after building the web service.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions