aboutsummaryrefslogtreecommitdiff
path: root/goodfile
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2024-05-13 23:39:50 -0700
committeriximeow <me@iximeow.net>2024-05-13 23:40:30 -0700
commitc21a5f2956d8e0fa3eace14661a8aed124c6e995 (patch)
treed15a835dd75a5c140fd822df2c3102572243d9b5 /goodfile
parent1e9cf24e4ceca8bfd48ff3e6f777fcec54b9a186 (diff)
test no-default-features more precisely0.2.8
Diffstat (limited to 'goodfile')
-rw-r--r--goodfile26
1 files changed, 15 insertions, 11 deletions
diff --git a/goodfile b/goodfile
index 4bdc992..6a79c41 100644
--- a/goodfile
+++ b/goodfile
@@ -6,14 +6,18 @@ Build.run({"cargo", "build"})
Step.advance("test")
Build.run({"cargo", "test"}, {name="test default features"})
-Build.run({"cargo", "test", "--no-default-features"}, {name="test no features"})
-Build.run({"cargo", "test", "--no-default-features", "--features", "std"}, {name="test std only"})
-Build.run({"cargo", "test", "--no-default-features", "--features", "colors"}, {name="test feature combinations"})
-Build.run({"cargo", "test", "--no-default-features", "--features", "use-serde"}, {name="test feature combinations"})
-Build.run({"cargo", "test", "--no-default-features", "--features", "address-parse"}, {name="test feature combinations"})
-Build.run({"cargo", "test", "--no-default-features", "--features", "std,colors"}, {name="test feature combinations"})
-Build.run({"cargo", "test", "--no-default-features", "--features", "std,use-serde"}, {name="test feature combinations"})
-Build.run({"cargo", "test", "--no-default-features", "--features", "std,address-parse"}, {name="test feature combinations"})
-Build.run({"cargo", "test", "--no-default-features", "--features", "use-serde,colors,address-parse"}, {name="test feature combinations"})
-Build.run({"cargo", "test", "--no-default-features", "--features", "std,colors,address-parse"}, {name="test feature combinations"})
-Build.run({"cargo", "test", "--no-default-features", "--features", "std,use-serde,colors"}, {name="test feature combinations"})
+
+-- `cargo test` ends up running doc tests. great! but yaxpeax-arch's docs reference items in std only.
+-- so for other feature combinations, skip doc tests. do this by passing `--tests` explicitly,
+-- which disables the automagic "run everything" settings.
+Build.run({"cargo", "test", "--no-default-features", "--tests"}, {name="test no features"})
+Build.run({"cargo", "test", "--no-default-features", "--tests", "--features", "std"}, {name="test std only"})
+Build.run({"cargo", "test", "--no-default-features", "--tests", "--features", "colors"}, {name="test feature combinations"})
+Build.run({"cargo", "test", "--no-default-features", "--tests", "--features", "use-serde"}, {name="test feature combinations"})
+Build.run({"cargo", "test", "--no-default-features", "--tests", "--features", "address-parse"}, {name="test feature combinations"})
+Build.run({"cargo", "test", "--no-default-features", "--tests", "--features", "std,colors"}, {name="test feature combinations"})
+Build.run({"cargo", "test", "--no-default-features", "--tests", "--features", "std,use-serde"}, {name="test feature combinations"})
+Build.run({"cargo", "test", "--no-default-features", "--tests", "--features", "std,address-parse"}, {name="test feature combinations"})
+Build.run({"cargo", "test", "--no-default-features", "--tests", "--features", "use-serde,colors,address-parse"}, {name="test feature combinations"})
+Build.run({"cargo", "test", "--no-default-features", "--tests", "--features", "std,colors,address-parse"}, {name="test feature combinations"})
+Build.run({"cargo", "test", "--no-default-features", "--tests", "--features", "std,use-serde,colors"}, {name="test feature combinations"})