I am working on my kernel for adding test.
I can add them, but I can't run them. Because I can't change the profile of a binary dependency to test in cargo.
I think that the best solution for that will be adding a field in Cargo.toml for changing the profile to tests in Cargo.toml.
I filled an issue for that in Change the build profile for bin-deps · Issue #11680 · rust-lang/cargo · GitHub
But if someone knows a better solutions, please ask in this topic.