Testing suite(s) for oscars/
Run the following docker compose service to run tests on the oscars-backend.
docker compose build --progress=plain --no-cache oscars-backend-testAlternatively, 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"