Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Phault committed Feb 4, 2024
1 parent a413002 commit 55cdcd0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
18 changes: 17 additions & 1 deletion tests/shims_test.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
use proto_pdk_test_utils::*;

#[cfg(not(windows))]
generate_shims_test!("dotnet-test");
#[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());
}
6 changes: 3 additions & 3 deletions tests/versions_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ use proto_pdk_test_utils::*;
use starbase_sandbox::create_empty_sandbox;

generate_resolve_versions_tests!("dotnet-test", {
"3" => "3.0.103",
"3" => "3.1.426",
"3.0" => "3.0.103",
"3.0.103" => "3.0.103",
"3.0.100-rc1" => "3.0.100-rc1",
"3.0.100-preview9" => "3.0.100-preview9",
"3.0.100-rc1.19458.1" => "3.0.100-rc1.19458.1",
"3.0.100-preview9.19426.11" => "3.0.100-preview9.19426.11",
});

#[test]
Expand Down

0 comments on commit 55cdcd0

Please sign in to comment.