kairoh / studio

STUdio - Story Teller Unleashed
Mozilla Public License 2.0
111 stars 16 forks source link

Build fail at unit test #99

Open Fabinout opened 11 months ago

Fabinout commented 11 months ago

Describe the bug When I build the project, $mvn install isn't working

To Reproduce Steps to reproduce the behavior:

  1. git clone
  2. install maven and java in latest stable versions
  3. $ mvn install
  4. See error

Expected behavior import dependencies, tests, then build

Screenshots If applicable, add screenshots to help explain your problem.

Logs

[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.283 s -- in studio.metadata.DatabaseMetadataServiceTest août 07, 2023 4:56:42 PM io.quarkus.bootstrap.runner.Timing printStopTime INFO: studio-web-ui stopped in 0.012s [INFO] [INFO] Results: [INFO] [ERROR] Failures: [ERROR] DeviceControllerTest.testAddToLibrary:225->restTransfer:172 transfer should be true ==> expected: but was: [INFO] [ERROR] Tests run: 19, Failures: 1, Errors: 0, Skipped: 0 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Quarkus - Usb4java- Parent 3.2.0.Final ............. SUCCESS [ 0.769 s] [INFO] Quarkus - Usb4java - Runtime 3.2.0.Final ........... SUCCESS [ 1.116 s] [INFO] Quarkus - Usb4java - Deployment 3.2.0.Final ........ SUCCESS [ 2.601 s] [INFO] Quarkus - usb4java - Integration Tests 3.2.0.Final . SUCCESS [ 1.282 s] [INFO] studio-parent 1.0.3-SNAPSHOT ....................... SUCCESS [ 0.018 s] [INFO] studio-core 1.0.3-SNAPSHOT ......................... SUCCESS [ 3.177 s] [INFO] studio-driver 1.0.3-SNAPSHOT ....................... SUCCESS [ 1.271 s] [INFO] studio-web-ui 1.0.3-SNAPSHOT ....................... FAILURE [ 43.206 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 54.431 s [INFO] Finished at: 2023-08-07T16:56:42+02:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.1.2:test (default-test) on project studio-web-ui: There are test failures. [ERROR]

Desktop and environment (please complete the following information):

When the code is run with -DskipTests, a jar file is correctly generated.

sbonaime commented 2 weeks ago

I have the same problem on macos