docs: update ROM test paths and envs
This commit is contained in:
@@ -108,7 +108,7 @@ The `yaze_test` executable is used to run the project's suite of unit, integrati
|
||||
./build/bin/yaze_test --unit
|
||||
|
||||
# Run tests that require a ROM file
|
||||
./build/bin/yaze_test --rom-dependent --rom-path /path/to/zelda3.sfc
|
||||
./build/bin/yaze_test --rom-dependent --rom-vanilla /path/to/alttp_vanilla.sfc
|
||||
```
|
||||
|
||||
- **Run GUI-based E2E Tests**:
|
||||
|
||||
@@ -78,7 +78,7 @@ cmake --build build --target yaze_test
|
||||
./build/bin/yaze_test --e2e --show-gui
|
||||
|
||||
# Run ROM-dependent tests
|
||||
./build/bin/yaze_test --rom-dependent --rom-path /path/to/zelda3.sfc
|
||||
./build/bin/yaze_test --rom-dependent --rom-vanilla /path/to/alttp_vanilla.sfc
|
||||
|
||||
# Run by pattern
|
||||
./build/bin/yaze_test "*Asar*"
|
||||
@@ -91,7 +91,7 @@ cmake --build build --target yaze_test
|
||||
|
||||
```bash
|
||||
# Configure with ROM tests
|
||||
cmake --preset mac-dev -DYAZE_TEST_ROM_PATH=/path/to/zelda3.sfc
|
||||
cmake --preset mac-dev -DYAZE_TEST_ROM_VANILLA_PATH=/path/to/alttp_vanilla.sfc
|
||||
|
||||
# Build
|
||||
cmake --build --preset mac-dev --target yaze_test
|
||||
|
||||
@@ -66,8 +66,8 @@ Run the **complete test suite** before pushing if:
|
||||
# Run all tests (may take 5+ minutes)
|
||||
./build/bin/yaze_test
|
||||
|
||||
# Include ROM-dependent tests (requires zelda3.sfc)
|
||||
./build/bin/yaze_test --rom-dependent --rom-path /path/to/zelda3.sfc
|
||||
# Include ROM-dependent tests (requires alttp_vanilla.sfc)
|
||||
./build/bin/yaze_test --rom-dependent --rom-vanilla /path/to/alttp_vanilla.sfc
|
||||
|
||||
# Run E2E GUI tests (headless)
|
||||
./build/bin/yaze_test --e2e
|
||||
@@ -107,10 +107,10 @@ cmake --build build --target yaze_test
|
||||
**Fix**:
|
||||
```bash
|
||||
# Set environment variable
|
||||
export YAZE_TEST_ROM_PATH=/path/to/zelda3.sfc
|
||||
export YAZE_TEST_ROM_VANILLA=/path/to/alttp_vanilla.sfc
|
||||
|
||||
# Or pass directly to test runner
|
||||
./build/bin/yaze_test --rom-path /path/to/zelda3.sfc
|
||||
./build/bin/yaze_test --rom-vanilla /path/to/alttp_vanilla.sfc
|
||||
```
|
||||
|
||||
### 4. E2E/GUI Test Failures
|
||||
@@ -177,7 +177,7 @@ git push
|
||||
|
||||
```bash
|
||||
# Run everything including ROM tests and E2E
|
||||
./build/bin/yaze_test --rom-dependent --rom-path zelda3.sfc
|
||||
./build/bin/yaze_test --rom-dependent --rom-vanilla roms/alttp_vanilla.sfc
|
||||
./build/bin/yaze_test --e2e
|
||||
|
||||
# Check code formatting
|
||||
@@ -238,7 +238,8 @@ Customize test behavior with these environment variables:
|
||||
|
||||
```bash
|
||||
# Path to test ROM file
|
||||
export YAZE_TEST_ROM_PATH=/path/to/zelda3.sfc
|
||||
export YAZE_TEST_ROM_VANILLA=/path/to/alttp_vanilla.sfc
|
||||
export YAZE_TEST_ROM_EXPANDED=/path/to/oos168.sfc
|
||||
|
||||
# Skip ROM-dependent tests entirely
|
||||
export YAZE_SKIP_ROM_TESTS=1
|
||||
|
||||
Reference in New Issue
Block a user