MCPcopy Create free account
hub / github.com/SeaQL/FireDBG.for.Rust / run_test

Function run_test

command/src/main.rs:681–715  ·  view source on GitHub ↗
(
    workspace: &Workspace,
    trace_cfg: &[(&Package, cfg::Trace)],
    package: &Package,
    test: &Test,
    testcase: &str,
    args: Vec<String>,
    output: Option<String>,
    firedbg_home: 

Source from the content-addressed store, hash-verified

679}
680
681async fn run_test(
682 workspace: &Workspace,
683 trace_cfg: &[(&Package, cfg::Trace)],
684 package: &Package,
685 test: &Test,
686 testcase: &str,
687 args: Vec<String>,
688 output: Option<String>,
689 firedbg_home: Option<String>,
690) -> Result<()> {
691 let sub_command = "test";
692 let build_cmd_output = test
693 .build(package)
694 .context("Fail to build integration test")?;
695 if !build_cmd_output.status.success() {
696 panic!("Fail to compile integration test");
697 }
698 let executable = test
699 .get_test_path(workspace, package)
700 .context("Fail to get integration test executable")?;
701 let name = &format!("{}-{}", test.name, testcase.replace("::", "_"));
702 run_debugger(
703 workspace,
704 trace_cfg,
705 sub_command,
706 executable,
707 name,
708 &package.name,
709 Some(testcase),
710 args,
711 output,
712 firedbg_home,
713 )
714 .await
715}
716
717async fn run_unit_test(
718 workspace: &Workspace,

Callers 1

mainFunction · 0.85

Calls 3

run_debuggerFunction · 0.85
buildMethod · 0.80
get_test_pathMethod · 0.80

Tested by

no test coverage detected