question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add testcontainers support in the Remote adapter

See original GitHub issue

TestContainers^1 becomes popular in these days.

When deploying to a running server using remote adapter, we have to prepare a server for it. Nowdays most of the application can be running in docker container.

Add support to combine @TestsContainers and @Container, and Arquillian @Deployment, and make sure application server is started and ready for remote deployment.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:23 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
hantsycommented, Jul 7, 2022

@kiview Yeah, all Jakarta EE compatible application server, such as Payara, WildFly, Open Liberty provide docker images.

When using a remote adapter, we have to prepare a running application server before running the tests. The test itself will package the test classes(defined by @Deployment) into an archive(jar or war, ear) and deploy into the running server, then run the test against the deployed test application.

What we want is simplify the progress, and let testcontainers to prepare the running server(and maybe other dependent services, such as database, redis, mq broker, etc).

Currently if we use @Testcontainers/@Container and Arquillian @Deployment, Arquillian engine do not know the existence of testcontainers container.

2reactions
kiviewcommented, Jul 1, 2022

I’d also be happy to chime in if any input or advice from the Testcontainers side of things is helpful 🙂 Do I understand it correctly that the integration of Arquillian with Testcontainers would allow doing @SpringBootTest style in-process transparent-box tests for Jakarta applications? In the past, I only used Jakarta in conjunction with Testcontainers for out-of-process opaque-box testing, where the Jakarta app itself is launched as a container.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom configuration - Testcontainers for Java
Customizing images​​ Testcontainers uses public Docker images to perform different actions like startup checks, VNC recording and others. Some companies disallow ...
Read more >
Can't connect to Ryuk container when using remote Docker host
Testcontainers used External Docker API for connection to moby-ryuk (172.17.0.1 in my case). Ports were closed and I couldn't connect to it. But ......
Read more >
Play with Testcontainers - Medium
Testcontainers is a Java 8 library that supports JUnit tests, providing lightweight, ... You just have to add the adapter you need.
Read more >
Using Testcontainers in Spring Boot Tests For Database ...
We have two methods, one for adding a hero into the database and one for getting all ... Testcontainers can also provide support...
Read more >
How can i use testcontainer in mac os with out Docker Desktop?
No need for a local Docker installation anymore. – rieckpil. Jan 18 at 7:50. Add a comment ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found