@@ -24,13 +24,13 @@ The test infrastructure uses:
2424
2525``` bash
2626# Start the test servers
27- docker- compose up -d
27+ docker compose -f test/support/docker- compose.yml up -d
2828
2929# Check servers are healthy
30- docker- compose ps
30+ docker compose -f test/support/docker- compose.yml ps
3131
3232# View logs if needed
33- docker- compose logs -f
33+ docker compose -f test/support/docker- compose.yml logs -f
3434```
3535
3636### 2. Run Tests
@@ -39,21 +39,28 @@ docker-compose logs -f
3939# Run all unit tests
4040rebar3 eunit
4141
42+ # Run Common Test integration tests (requires docker servers)
43+ rebar3 ct
44+
4245# Run property-based tests
43- rebar3 as test proper
46+ rebar3 proper
4447
4548# Run all tests
46- rebar3 do eunit, as test proper
49+ rebar3 test
50+
51+ # Run HTTP/2 compliance tests (excluded by default - slow, requires special setup)
52+ # Note: This requires the h2-test-harness-patched Docker image to be built
53+ rebar3 ct --suite=h2_compliance_SUITE
4754```
4855
4956### 3. Stop Test Infrastructure
5057
5158``` bash
5259# Stop and remove containers
53- docker- compose down
60+ docker compose -f test/support/docker- compose.yml down
5461
5562# Stop and remove containers + volumes
56- docker- compose down -v
63+ docker compose -f test/support/docker- compose.yml down -v
5764```
5865
5966## Test Server Endpoints
@@ -88,8 +95,8 @@ HTTPBIN_HTTPS_PORT=8443
8895
8996If tests are being skipped with "Test server not available", ensure:
9097
91- 1 . Docker Compose is running: ` docker- compose ps `
92- 2 . Services are healthy: ` docker- compose ps ` (should show "healthy")
98+ 1 . Docker Compose is running: ` docker compose -f test/support/docker- compose.yml ps `
99+ 2 . Services are healthy: ` docker compose -f test/support/docker- compose.yml ps ` (should show "healthy")
931003 . Ports are accessible: ` curl http://localhost:8080/get `
94101
95102### Port conflicts
@@ -113,6 +120,11 @@ The Caddy server uses self-signed certificates for local testing. Tests should u
113120## Test Structure
114121
115122- ` test_helper.erl ` - Common test utilities and server configuration
116- - ` *_test.erl ` - Unit tests for individual modules
117- - ` *_integration_test.erl ` - Integration tests that use the test server
123+ - ` *_SUITE.erl ` - Common Test suites (integration tests)
124+ - ` features_SUITE.erl ` - Feature tests
125+ - ` http1_SUITE.erl ` - HTTP/1.1 protocol tests
126+ - ` http2_SUITE.erl ` - HTTP/2 protocol tests
127+ - ` ssl_SUITE.erl ` - SSL/TLS tests
128+ - ` unified_SUITE.erl ` - Unified API tests
129+ - ` h2_compliance_SUITE.erl ` - HTTP/2 RFC compliance (excluded by default)
118130- ` prop_*.erl ` - Property-based tests using PropEr
0 commit comments