Open oiricaud opened 4 years ago
Refactoring the class that appsody generates MainTests
to another class name such as TestMe
resolves this bug.
[Container] 2020-05-28 16:33:06.993 INFO 186 --- [o-auto-1-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
[Container] 2020-05-28 16:33:06.993 INFO 186 --- [o-auto-1-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
[Container] 2020-05-28 16:33:07.015 INFO 186 --- [o-auto-1-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 22 ms
[Container] 2020-05-28 16:33:07.164 INFO 186 --- [ main] i.j.internal.reporters.LoggingReporter : Span reported: f8b2380dff08f327:f8b2380dff08f327:0:1 - GET
[Container] 2020-05-28 16:33:07.269 INFO 186 --- [ main] i.j.internal.reporters.LoggingReporter : Span reported: 70520fdbe2ef36db:70520fdbe2ef36db:0:1 - GET
[Container] 2020-05-28 16:33:07.280 INFO 186 --- [ main] i.j.internal.reporters.LoggingReporter : Span reported: be347a2139594b08:be347a2139594b08:0:1 - GET
[Container] 2020-05-28 16:33:07.320 INFO 186 --- [ main] i.j.internal.reporters.LoggingReporter : Span reported: f4b83cf9358b4546:f4b83cf9358b4546:0:1 - GET
[Container] 2020-05-28 16:33:07.334 INFO 186 --- [ main] i.j.internal.reporters.LoggingReporter : Span reported: 302d20a796e5e032:302d20a796e5e032:0:1 - GET
[Container] 2020-05-28 16:33:07.367 INFO 186 --- [ main] i.j.internal.reporters.LoggingReporter : Span reported: 2ff445a4a4084526:2ff445a4a4084526:0:1 - GET
[Container] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.666 sec
[Container] 2020-05-28 16:33:07.435 INFO 186 --- [ Thread-11] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'
[Container]
[Container] Results :
[Container]
[Container] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0
Describe the bug Unable to run unit tests on the default
MainTest
class that gets generated when usingappsody test
.To Reproduce Steps to reproduce the behavior:
Step 3 generates the
MainTests
classExpected behavior I need to understand when using
appsody test
the test classes do not run. What it should do, it should run the test class that got generated by appsody.Actual behaviour The build is successful but I do not get any indication that the test cases passed/failed.
Environment Details (please complete the following information):
If applicable please specify: