Testcontainers-java: Example using TestNG

Created on 11 Jul 2018  路  4Comments  路  Source: testcontainers/testcontainers-java

Is it possible to run testcontainers using TestNG?

aretest frameworks good first issue hacktoberfest resolutioacknowledged typdocs typquestion

Most helpful comment

@vpondala Awesome. Right now the best solution would probably adding an example project in the examples directory and extending the docs accordingly :slightly_smiling_face:

All 4 comments

Hey @micheal-swiggs,
Yes it is!
Just instantiate the container objects and use start()/stop() methods and the appropriate points in your test lifecycle.

It would be cool, if we could provide an example directly in the docs I think :slightly_smiling_face:.

I can give it a try.

@vpondala Awesome. Right now the best solution would probably adding an example project in the examples directory and extending the docs accordingly :slightly_smiling_face:

Raised PR #893. 1/6 codacy checks are failing but this change is consistent with existing code base.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aruizca picture aruizca  路  4Comments

rnorth picture rnorth  路  3Comments

eksd picture eksd  路  3Comments

denis-zhdanov picture denis-zhdanov  路  3Comments

bsideup picture bsideup  路  4Comments