-
-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug.
java-spring-template can generate a Maven project using the -p maven=true parameter, but building the project doesn't run the generated unit tests.
Expected behavior
It should run the generated unit tests without any modification.
Screenshots
How to Reproduce
- Generate a Maven project using java-spring-template:
$ asyncapi generate fromTemplate tests/mocks/kafka.yml . -o /tmp/kafka -p maven=true
- Ensure unit tests are included in the generated code:
$ cd /tmp/kafka
$ ls -l src/test/java/com/asyncapi
total 20
-rw-rw-r-- 1 sekikn sekikn 462 Dec 5 23:02 ApplicationTests.java
-rw-rw-r-- 1 sekikn sekikn 4901 Dec 5 23:02 SimpleKafkaTest.java
-rw-rw-r-- 1 sekikn sekikn 6428 Dec 5 23:02 TestcontainerKafkaTest.java
- Build the project and find the tests are not executed:
$ mvn clean install
(snip)
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
π₯οΈ Device Information [optional]
- Operating System (OS): Ubuntu 24.04
- Browser: -
- Browser Version: -
π Have you checked for similar open issues?
- I checked and didn't find similar issue
π’ Have you read the Contributing Guidelines?
- I have read the Contributing Guidelines
Are you willing to work on this issue ?
Yes I am willing to submit a PR!
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working