From 9b07978ede92fd11aa941e99077555cb2709ef08 Mon Sep 17 00:00:00 2001 From: Casper Lindschouw Date: Tue, 13 Feb 2024 20:01:03 +0100 Subject: [PATCH] Remove obsolete tests --- tests/download_test.rs | 3 --- tests/metadata_test.rs | 18 ------------------ tests/shims_test.rs | 20 -------------------- 3 files changed, 41 deletions(-) delete mode 100644 tests/download_test.rs delete mode 100644 tests/metadata_test.rs delete mode 100644 tests/shims_test.rs diff --git a/tests/download_test.rs b/tests/download_test.rs deleted file mode 100644 index f91f280..0000000 --- a/tests/download_test.rs +++ /dev/null @@ -1,3 +0,0 @@ -use proto_pdk_test_utils::*; - -generate_download_install_tests!("dotnet-test", "8.0.101"); diff --git a/tests/metadata_test.rs b/tests/metadata_test.rs deleted file mode 100644 index a1aaf54..0000000 --- a/tests/metadata_test.rs +++ /dev/null @@ -1,18 +0,0 @@ -use proto_pdk_test_utils::*; -use starbase_sandbox::create_empty_sandbox; - -#[test] -fn registers_metadata() { - let sandbox = create_empty_sandbox(); - let plugin = create_plugin("dotnet-test", sandbox.path()); - - assert_eq!( - plugin.register_tool(ToolMetadataInput::default()), - ToolMetadataOutput { - name: ".NET".into(), - type_of: PluginType::Language, - plugin_version: Some(env!("CARGO_PKG_VERSION").into()), - ..ToolMetadataOutput::default() - } - ); -} diff --git a/tests/shims_test.rs b/tests/shims_test.rs deleted file mode 100644 index 6ccbe16..0000000 --- a/tests/shims_test.rs +++ /dev/null @@ -1,20 +0,0 @@ -use proto_pdk_test_utils::*; - -#[cfg(not(windows))] -#[tokio::test] -async fn creates_global_shims() { - let sandbox = starbase_sandbox::create_empty_sandbox(); - let mut plugin = create_plugin("dotnet-test", sandbox.path()); - - plugin.tool.generate_shims(false).await.unwrap(); - - assert!(sandbox - .path() - .join(".proto/shims") - .join(if cfg!(windows) { - "dotnet-test.exe" - } else { - "dotnet-test" - }) - .exists()); -}