Skip to content

Commit df2cc79

Browse files
committed
run single test
1 parent fc90555 commit df2cc79

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ if (args.includes('-h')) {
2929
-c force PNG to CHR conversion
3030
-o override autodetect mmc1 header with cnrom
3131
-t run tests (requires cargo)
32+
-T run single test
3233
-h you are here
3334
`);
3435
process.exit(0);
@@ -203,3 +204,9 @@ if (args.includes('-t')) {
203204
console.log('\nrunning tests');
204205
exec('cargo run --release --manifest-path tests/Cargo.toml -- -t');
205206
}
207+
208+
if (args.includes('-T')) {
209+
const singleTest = args[1+args.indexOf('-T')];
210+
console.log(`\nrunning single test: ${singleTest}`);
211+
exec(`cargo run --release --manifest-path tests/Cargo.toml -- -T ${singleTest}`);
212+
}

0 commit comments

Comments
 (0)