1.10.0
It's 1.10.0! 🎆
We have some exciting new features in this release:
Official JUnit 5 support! 5️⃣
Our users have been asking for this for a long time, and we're delighted to finally add an official JUnit 5 (Jupiter) extension to Testcontainers. Thanks to @britter and several members of the JUnit team for their support and contribution!
Usage couldn't be easier:
@Testcontainers
class SomeTest {
@Container
private MySQLContainer mySQLContainer = new MySQLContainer();
@Test
void someTestMethod() {
String url = mySQLContainer.getJdbcUrl();
// create a connection and run test as normal
}
}
Check out the documentation for more information.
Elasticsearch container class! 😎
Testing against elasticsearch just became much easier, thanks to this great contribution by @dadoonet.
This is based on the official Docker image provided by elastic. Check out the docs to see how easy it is to use.
What else has Changed
- Test against OpenJDK 11 (#883) @bsideup
- Use latest available VNC recorder image (#888) @rnorth
- Add missing argument to log statement (#895) @atomfrede
- Docs: Added an example using TestNG (#778) (#893) @vpondala
- Docs: Add Travis job for examples (#897) @kiview
- Docs: Update ROADMAP link in CONTRIBUTING.md (#901) @chungngoops
- Add property to start ryuk in privileged mode (#894) @atomfrede
- Docs: Adds description for JUnit 5 usage (#911) @artjomka and (#918) @TimRiemer
- Support empty password for mysql (#899) @chungngoops
- Fix examples in Couchbase README.md (#935) @kiview
- Add configuration for probot-stale bot (#907) @rnorth
- Remove old docs (#890) @rnorth
- Add WARN log if provided Couchbase password offends default policy (#936) @kiview
- Update commons-compress to 1.18 (#943) @nickbabcock
- Add Elasticsearch testcontainer (#826) @dadoonet
- Update Pulsar to 2.2.0 (#941) @haphut
- remove @nullable annotations and dependency on com.google.code.findbugs:jsr305 (#920) @dbyron0
- JUnit 5 extension (#887) @britter, (#947) @kiview
- Add JUnit5/Jupiter usage instructions to docs (#954) @kiview
- Support init script at JdbcDatabaseContainer level (#575) @AnkBurov
- Activate gradle build scans for CI builds (#916) @britter