studio icon indicating copy to clipboard operation
studio copied to clipboard

Build fail at unit test

Open Fabinout opened this issue 1 year ago • 1 comments

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):

  • OS: Ubuntu 22.04
  • Browser irrelevant
  • Java version: openjdk 17.0.8 2023-07-18
  • Maven version: Apache Maven 3.9.4
  • STUdio application version irrelevant

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

Fabinout avatar Aug 07 '23 15:08 Fabinout

I have the same problem on macos

sbonaime avatar Jun 16 '24 07:06 sbonaime