testcontainers / testcontainers/testcontainers-java

[Feature]: Application Server Module

Open
#7,098 4 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type/feature type/new module
Dominant language
Java
Stars
8.7k
Forks
1.9k
Avg merge
2d 17h
Merged PRs (30d)
9

Description

Module

New Module

Problem

As a Java test framework, it would be great for the Testcontainers project to expand into the Jakarta EE space by offering an application platform module with application containers.

This would allow application developers the ability to perform functional tests on their applications.
This would allow platform developers the ability to perform integration tests on their platform.

Solution

The solution I am proposing would be to have a new module named application-platform

With an abstract container type of ApplicationContainer

Implementations of this container would come from vendors, for example:

  • IBM - Open Liberty
  • Apache - Tomcat
  • JBoss - Wildfly
  • Oracle - Weblogic
  • Eclipse - Payara

[WIP] An ApplicationContainer would contain:

abstract ApplicationContainer: 
  optional configurationFile
  optional applicationPackages (pre-compiled from src/ for functional testing)
  optional applicationArchives   (created from test/ at runtime for integration testing)
  required appContextRoot
Benefit

The benefit of having this feature would be to streamline the process of performing functional and integration testing on Jakarta EE platforms.

Alternatives

The direct alternative would be to use a generic container with a bespoke configuration.

The comprehensive alternative would be to use Microshed Testing which isn't being maintained.

The other alternative is Arquillian which has its own concept of "containers" which doesn't use docker as the underlying technology.

Would you like to help contributing this feature?

Yes

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing existing Testcontainers module conventions and the proposed application-platform scope in this issue. Done would require an agreed design for ApplicationContainer, its configuration and application inputs, plus a clear path for vendor implementations such as Open Liberty, Tomcat, WildFly, WebLogic, and Payara.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, java
Domain
backend, testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.