acceptance-test-harness icon indicating copy to clipboard operation
acceptance-test-harness copied to clipboard

Replace `docker-fixtures` with `testcontainers`

Open timja opened this issue 2 years ago • 4 comments

docker-fixtures has been deprecated for a long time, https://www.testcontainers.org is the recommended replacement.

We should switch to it.

timja avatar Jul 08 '22 20:07 timja

there are issues with testcontainers - I would not recommend switching right away, or this PR should be inlined.

jtnord avatar Feb 21 '23 14:02 jtnord

or upgrade to junit5 and simply use @Testcontainers(disabledWithoutDocker = true) ?

olamy avatar Mar 06 '23 05:03 olamy

or upgrade to junit5 and simply use @Testcontainers(disabledWithoutDocker = true) ?

The issue with this (and the former PR) is that it will skip the entire test class/suite and not just the test that requires the docker container. (so a larger refactoring of tests would likely be needed, as we routinely mix containerized and non containerized in the same class). Additionally if you skip a class/suite then Jenkins won't know it is skipped in the Junit report so it won't mark the 5 tests in a class as skipped (it will if you skip at the test level).

Given we regressed docker support and no one noticed for quite some time - I would be hesitant of not recording tests as skipped so it stands out like Guliver in Lilliput

jtnord avatar May 15 '23 08:05 jtnord