Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example using TestNG #778

Closed
micheal-swiggs opened this issue Jul 11, 2018 · 4 comments
Closed

Example using TestNG #778

micheal-swiggs opened this issue Jul 11, 2018 · 4 comments

Comments

@micheal-swiggs
Copy link

Is it possible to run testcontainers using TestNG?

@kiview
Copy link
Member

kiview commented Jul 23, 2018

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 🙂.

@vpondala
Copy link
Contributor

vpondala commented Oct 2, 2018

I can give it a try.

@kiview
Copy link
Member

kiview commented Oct 2, 2018

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

vpondala added a commit to vpondala/testcontainers-java that referenced this issue Oct 2, 2018
The tests in this example are same as redis-backend-cache, but runs tests
using TestNG instead of JUnit.
@vpondala
Copy link
Contributor

vpondala commented Oct 3, 2018

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

@kiview kiview closed this as completed in 08ba43f Oct 4, 2018
dbyron0 referenced this issue in locationlabs/testcontainers-java Oct 10, 2018
The tests in this example are same as redis-backend-cache, but runs tests
using TestNG instead of JUnit.

Closes #778
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants