(
workspace: &Workspace,
trace_cfg: &[(&Package, cfg::Trace)],
package: &Package,
test: &Test,
testcase: &str,
args: Vec<String>,
output: Option<String>,
firedbg_home:
| 679 | } |
| 680 | |
| 681 | async 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 | |
| 717 | async fn run_unit_test( |
| 718 | workspace: &Workspace, |
no test coverage detected