Skip to content

Commit d1808e7

Browse files
committed
refactor: make the code more modular and use report builder to generate the report
1 parent 95d8680 commit d1808e7

File tree

3 files changed

+373
-246
lines changed

3 files changed

+373
-246
lines changed

src/tool/subcommands/api_cmd.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ pub enum ApiCommands {
131131
#[arg(long, value_enum, num_args = 0.., use_value_delimiter = true, value_delimiter = ',', default_values_t = [TestCriteriaOverride::TimeoutAndTimeout])]
132132
test_criteria_overrides: Vec<TestCriteriaOverride>,
133133

134-
/// Generate a machine-readable report for all the API tests run.
134+
/// Specify a directory to dump the test report
135135
#[arg(long)]
136-
report_path: Option<PathBuf>,
136+
report_dir: Option<PathBuf>,
137137

138138
/// Report detail level: full (default), failure-only, or summary
139139
#[arg(long, value_enum, default_value = "full")]
@@ -217,7 +217,7 @@ impl ApiCommands {
217217
create_tests_args,
218218
dump_dir,
219219
test_criteria_overrides,
220-
report_path,
220+
report_dir,
221221
report_mode,
222222
} => {
223223
let forest = Arc::new(rpc::Client::from_url(forest));
@@ -238,7 +238,7 @@ impl ApiCommands {
238238
fail_fast,
239239
dump_dir.clone(),
240240
&test_criteria_overrides,
241-
report_path.clone(),
241+
report_dir.clone(),
242242
report_mode,
243243
)
244244
.await?;

0 commit comments

Comments
 (0)