-
Notifications
You must be signed in to change notification settings - Fork 69
/
Makefile
27 lines (19 loc) · 921 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
UNIT_TAGS := "$(subst :, or ,$(shell awk '{print $2}' src/test/unit.tags | paste -s -d: -))"
INTEGRATION_TAGS := "$(subst :, or ,$(shell awk '{print $2}' src/test/integration.tags | paste -s -d: -))"
unit:
mvn test -Dcucumber.filter.tags=$(UNIT_TAGS)
integration:
mvn test -Dtest=com.algorand.algosdk.integration.RunCucumberIntegrationTest -Dcucumber.filter.tags=$(INTEGRATION_TAGS)
display-all-java-steps:
find src/test/java/com/algorand/algosdk -name "*.java" | xargs grep "io.cucumber.java.en" 2>/dev/null | grep -v Binary | cut -d: -f1 | sort | uniq | xargs grep -E "@(Given|Then|When)"
harness:
./test-harness.sh up
harness-down:
./test-harness.sh down
docker-javasdk-build:
# Build SDK testing environment
docker build -t java-sdk-testing .
docker-javasdk-run:
# Launch SDK testing
docker run -it --network host java-sdk-testing:latest
docker-test: harness docker-javasdk-build docker-javasdk-run