mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
Add `--debug` command line option for transformer conformance runner, same as for `cargo coverage`. It prints the paths of test fixtures before running them.
14 lines
380 B
Rust
14 lines
380 B
Rust
use oxc_transform_conformance::{TestRunner, TestRunnerOptions};
|
|
use pico_args::Arguments;
|
|
|
|
fn main() {
|
|
let mut args = Arguments::from_env();
|
|
|
|
let options = TestRunnerOptions {
|
|
debug: args.contains("--debug"),
|
|
filter: args.opt_value_from_str("--filter").unwrap(),
|
|
exec: args.contains("--exec"),
|
|
};
|
|
|
|
TestRunner::new(options.clone()).run();
|
|
}
|