Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
|
technowatch:testcontainers [2017/07/27 12:11] marc dexet |
technowatch:testcontainers [2017/11/05 18:55] (Version actuelle) marc dexet |
||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| ====== TestContainers ====== | ====== TestContainers ====== | ||
| - | Une initiative à suivre: la création de containeurs dédiés aux tests. | + | Une initiative à suivre: la création de containeurs dédiés aux tests.\\ |
| + | [[https://www.testcontainers.org/|https://www.testcontainers.org/]] | ||
| <blockquote>TestContainers is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.</blockquote> | <blockquote>TestContainers is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.</blockquote> | ||
| + | |||
| + | Un exemple de mise en oeuvre avec l'appel d'une librairie java à travers Gradle est illustré dans cet [[https://medium.com/@bsideup/testing-your-docker-containers-with-testcontainers-and-groovy-3b9ef97ad1c2|article.]] | ||
| + | |||
| + | Dans cet exemple, il est montré comment lancer | ||
| + | |||
| + | * un containeur Docker depuis un script groovy | ||
| + | * une service de tests unitaires | ||
| + | |||
| + | Le tout peut se faire //dans// un conteneur (//Docker inDocker)// via //docker-compose//. | ||
| + | |||
| + | {{tag>docker java test}} | ||