-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Running maven with the package target triggers building and running the unit-tests, with the following output:
07:29 $ git checkout master
Switched to branch 'master'
Your branch is up to date with 'upstream/master'.
✔ ~/git/ICAT-related/ids.server [master|✔]
07:29 $ mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------< org.icatproject:ids.server >---------------------
[INFO] Building IDS Server 2.0.1-SNAPSHOT
[INFO] --------------------------------[ war ]---------------------------------
[...]
Results :
Tests in error:
TestICATGetter.testGetService:27 » IcatException_ Invalid URL:
Tests run: 17, Failures: 0, Errors: 1, Skipped: 1
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.344 s
[INFO] Finished at: 2024-01-30T07:30:03+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project ids.server: There are test failures.
[...]The failing test is testGetService
@Test
public void testGetService() throws Exception {
ICAT icat = ICATGetter.getService(System.getProperty("serverUrl"));
System.out.println(icat.getApiVersion());
}This looks more like a functional or integration test than a unit test.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels