oxc/tasks/transform_conformance/src/main.rs
overlookmotel f4fda2dba6 test(transformer): add --debug option to transform conformance (#7400)
Add `--debug` command line option for transformer conformance runner, same as for `cargo coverage`. It prints the paths of test fixtures before running them.
2024-11-22 02:23:10 +00:00

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();
}