Skip to content

[Discuss] Build integration test #511

@ruanwenjun

Description

@ruanwenjun

In most of the time, we can use unit test to test our code, but this is not enough, since unit test is just test the code logic, it doesn't considerate the real situation of different modules working together.

We should also use integration test to test the whole application.

In EventMesh, there are some three-part dependencies, e.g. rocketmq、mysql(In the future)...
It is better to create a container environment to run the integration test script or code.

I think maybe this project can help us.
https://github.com/testcontainers/testcontainers-java.
https://www.testcontainers.org/modules/rabbitmq/

It supports create mysql、kafka、pulsar container, but it donesn't support rocketmq now(testcontainers/testcontainers-java#3348).

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionThis issue requires further discussionfeaturehelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions