Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ pub(crate) fn get_artifact_config(package: Package, artifact: Artifact) -> CTRCo
// For now, assume a single "kind" per artifact. It seems to be the case
// when a single executable is built anyway but maybe not in all cases.
let name = match artifact.target.kind[0].as_ref() {
"bin" | "lib" | "rlib" | "dylib" if artifact.target.test => {
"bin" | "lib" | "rlib" | "dylib" if artifact.profile.test => {
Copy link
Member

@ian-h-chamberlain ian-h-chamberlain Mar 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks okay to me; the cargo_metadata docs are a little unclear (to me) about the difference but I guess Whether or not this target is tested by default by cargo test would in fact be true for most lib targets so I'm surprised I never noticed this before... I guess because we don't generally build .3dsx for libs

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to also be true for binaries (or, at least, my binary), so I do wonder how it was never caught before!

format!("{} tests", artifact.target.name)
}
"example" => {
Expand Down
Loading