Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 913 Bytes

File metadata and controls

30 lines (20 loc) · 913 Bytes

TESTING

Testing suite(s) for oscars/

Back-end (JUnit, Cucumber)

Run the following docker compose service to run tests on the oscars-backend.

docker compose build --progress=plain --no-cache oscars-backend-test

Alternatively, we can also run docker build directly by using the following command:

docker build -t oscars-backend --progress=plain --no-cache --target=test --build-arg JAVA_OPTS="-XX:UseSVE=0" --build-arg MAVEN_OPTS="-XX:UseSVE=0" -f ../oscars/deploy/devel/backend.dockerfile .

And lastly, if you prefer to run mvn test directly, you can simply run the following from within the backend/ directory

# Run all tests
mvn test

# Run only tests with @RestNsoSync tag
mvn test -Dcucumber.filter.tags="@RestNsoSync"

# Test all tests with tag @RestNsoSync, but exlcude some other tag(s)
mvn test -Dcucumber.filter.tags="@RestNsoSync and not @Unit"