-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.test
More file actions
40 lines (36 loc) · 1.32 KB
/
Dockerfile.test
File metadata and controls
40 lines (36 loc) · 1.32 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
# ============================================================================
# Test Dockerfile - Runs all tests including CRS transformation tests
# ============================================================================
FROM rust:1.91-bookworm
# Set working directory
WORKDIR /workspace
# Copy workspace files
COPY . .
# Default command: Run all tests
CMD ["cargo", "test", "--workspace", "--exclude", "tp-py", "--", "--nocapture"]
# ============================================================================
# Usage instructions:
#
# 1. Build the test image:
# docker build -f Dockerfile.test -t tp-lib-test .
#
# 2. Run all tests:
# docker run --rm tp-lib-test
#
# 3. Run specific test:
# docker run --rm tp-lib-test cargo test test_name
#
# 4. Run with verbose output:
# docker run --rm tp-lib-test cargo test -- --nocapture --test-threads=1
#
# 5. Run only CRS transformation tests:
# docker run --rm tp-lib-test cargo test crs_transform
#
# 6. Interactive shell for debugging:
# docker run --rm -it tp-lib-test bash
#
# 7. Using docker-compose:
# docker-compose run --rm test
# ============================================================================
# docker-compose run --rm test
# ============================================================================