Skip to content

Commit b7c5287

Browse files
committed
test: automate nestest in unit tests
it only tests up to the last known good line number. pushing this to a higher number (eventually, the whole file!) can help continue to fix issues with trace and find bugs in my emulator
1 parent e832c12 commit b7c5287

File tree

4 files changed

+9069
-20
lines changed

4 files changed

+9069
-20
lines changed

justfile

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ run:
44
lint:
55
cargo clippy --all --all-features --tests -- -D warnings
66

7+
lint_fix:
8+
cargo clippy --all --all-features --tests --fix
9+
710
build:
811
cargo build
912

@@ -14,8 +17,6 @@ test_watch:
1417
git ls-files | entr cargo test
1518

1619
nestest:
17-
cargo run roms/nestest.nes
20+
NESTEST_HACK=1 cargo run > myout.log
1821

1922
pre_commit: lint test build
20-
21-

0 commit comments

Comments
 (0)