Skip to content

Tests should fail when parameteres are not set #279

@joker234

Description

@joker234

Bug Description

If you run the tests in the ohsome API project you don't get any errors if you didn't pass the required parameters.

General Information

Please include the following general information about the issue and list any additional steps needed to reproduce the bug.

  • Version of the ohsome API [e.g. 1.5.0]: current master

Expected Behaviour

The tests shouldn't be ignored but fail. In the maven output you can't even see that tests were skipped!

Output

IDEA

Maven

% JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 mvn clean test
[INFO] Scanning for projects...
[INFO] 
[INFO] --------------------< org.heigit.ohsome:ohsome-api >--------------------
[INFO] Building ohsome API 1.7.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
…
[INFO] 
[INFO] --- maven-surefire-plugin:3.0.0-M5:test (default-test) @ ohsome-api ---
[INFO] 
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.heigit.ohsome.ohsomeapi.executor.ContributionsExecutorTest
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.048 s - in org.heigit.ohsome.ohsomeapi.executor.ContributionsExecutorTest
[INFO] Running org.heigit.ohsome.ohsomeapi.controller.DataExtractionTest
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 s - in org.heigit.ohsome.ohsomeapi.controller.DataExtractionTest
[INFO] Running org.heigit.ohsome.ohsomeapi.controller.PostControllerTest
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in org.heigit.ohsome.ohsomeapi.controller.PostControllerTest
[INFO] Running org.heigit.ohsome.ohsomeapi.controller.GetControllerTest
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in org.heigit.ohsome.ohsomeapi.controller.GetControllerTest
[INFO] Running org.heigit.ohsome.ohsomeapi.inputprocessing.InputProcessingUtilsTest
[INFO] Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.052 s - in org.heigit.ohsome.ohsomeapi.inputprocessing.InputProcessingUtilsTest
[INFO] Running org.heigit.ohsome.ohsomeapi.inputprocessing.GeometryBuilderTest
Jul 20, 2022 6:09:27 PM org.hsqldb.persist.Logger logInfoEvent
INFO: dataFileCache open start
[INFO] Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.244 s - in org.heigit.ohsome.ohsomeapi.inputprocessing.GeometryBuilderTest
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 29, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  10.023 s
[INFO] Finished at: 2022-07-20T18:09:28+02:00
[INFO] ------------------------------------------------------------------------

Metadata

Metadata

Assignees

No one assigned

    Labels

    CIRelated to continuous integration (unit tests, build settings, etc.)bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions