Skip to content

[V2] cargo test STATUS_ENTRYPOINT_NOT_FOUND error. #11179

Answered by amrbashir
probaku1234 asked this question in Q&A
Discussion options

You must be logged in to vote

We have a workaround for our repo here

// workaround needed to prevent `STATUS_ENTRYPOINT_NOT_FOUND` error in tests
// see https://github.com/tauri-apps/tauri/pull/4383#issuecomment-1212221864
let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap();
let target_env = std::env::var("CARGO_CFG_TARGET_ENV");
let is_tauri_workspace = std::env::var("__TAURI_WORKSPACE__").map_or(false, |v| v == "true");
if is_tauri_workspace && target_os == "windows" && Ok("msvc") == target_env.as_deref() {
embed_manifest_for_tests();
}
}
fn embed_manifest_for_tests() {
static W…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by amrbashir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants