diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index adb662d..16ff453 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,4 +26,7 @@ jobs: with: name: mycache - run: chmod +x ./ilp-rest-service/gradlew - - run: nix develop .#ci --command just all + - name: Unit Testing and Integration Testing + run: nix develop .#ci --command just all + - name: E2E Test + run: nix develop .#ci --command just e2e diff --git a/.justfile b/.justfile index d99b0be..15b37ae 100644 --- a/.justfile +++ b/.justfile @@ -2,7 +2,6 @@ all: @just format @just static-analysis @just test - @just e2e format: cd ./drone-black-box && go fmt @@ -21,3 +20,10 @@ test: e2e: bash .bin/e2e.sh + +benchmark: + echo "Make sure the server is running at http://localhost:3000" + oha -z 10s -c 50 -m POST \ + -H "Content-Type: application/json" \ + -d '{"drone_id": "TEST-DRONE", "latitude": 0.0, "longitude": 0.0, "timestamp": "2025-01-01"}' \ + http://localhost:3000/ingest