Skip to content

Commit

Permalink
Add starting test servers to the make test-all target
Browse files Browse the repository at this point in the history
  • Loading branch information
1c3t3a committed Nov 24, 2024
1 parent 9fc65cd commit e3b002a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY: build test-fast test-all clippy format checks pipeline
.PHONY: build test-fast run-test-servers test-all clippy format checks pipeline

build:
build:
@cargo build --verbose --all-features

keys:
Expand All @@ -9,8 +9,13 @@ keys:
test-fast: keys
@cargo test --verbose --package rust_socketio --lib -- engineio::packet && cargo test --verbose --package rust_socketio --lib -- socketio::packet

test-all: keys
run-test-servers:
cd ci && docker build -t test_suite:latest . && cd ..
docker run -d -p 4200:4200 -p 4201:4201 -p 4202:4202 -p 4203:4203 -p 4204:4204 -p 4205:4205 -p 4206:4206 --name socketio_test test_suite:latest

test-all: keys run-test-servers
@cargo test --verbose --all-features
docker stop socketio_test

clippy:
@cargo clippy --verbose --all-features
Expand Down

0 comments on commit e3b002a

Please sign in to comment.