macrotest icon indicating copy to clipboard operation
macrotest copied to clipboard

Package macrotest000 does not have the feature `test-feature`

Open taqtiqa-mark opened this issue 2 years ago • 1 comments

I've encountered this issue while implementing a infinyon/fluvio plugin-style integration test harness for Minitest, PR tikv/minitrace-rust/pull/127.

I have now reproduced the issue in a test-virtual project that will, hopefully, land here via PR #72.

The test-virtual example shows how to setup macrotest with a generic (non-libtest) test harness, and allows macrotest users to compare this plugin-style integration test suite with the default Rust libtest test harness.

At the moment the test-virtual project returns this error:

cargo test integration-tests 

<snip>

Expansion error:
error: Package `wrkspc-test-tests v0.0.0 (/home/user/src/macrotest/test-virtual/target/tests/wrkspc-test/macrotest000)` does not have the feature `test-feature`

I've banged my head on both projects but can't seem to figure out where the mismatch is occuring.

Appreciate any help or insights you can share.

taqtiqa-mark avatar Mar 28 '22 09:03 taqtiqa-mark

Note to self to investigate possible workaround:

Cargo virtual manifests do not support the [features] stanza (without also having the [package] stanza). See Cargo issue 4942.

taqtiqa-mark avatar May 13 '22 06:05 taqtiqa-mark