Skip to content
Snippets Groups Projects
Unverified Commit 1deb644a authored by Thomas Cameron's avatar Thomas Cameron Committed by GitHub
Browse files

Check all features in gradle `cargoCheck`/`cargoTest` targets (#2100)

parent 9d8ed4f9
Branches
Tags
No related merge requests found
...@@ -233,16 +233,17 @@ fun Project.registerCargoCommandsTasks( ...@@ -233,16 +233,17 @@ fun Project.registerCargoCommandsTasks(
"generateCargoConfigToml", "generateCargoConfigToml",
this.tasks.findByName("modifyMtime")?.let { "modifyMtime" }, this.tasks.findByName("modifyMtime")?.let { "modifyMtime" },
) )
this.tasks.register<Exec>(Cargo.CHECK.toString) { this.tasks.register<Exec>(Cargo.CHECK.toString) {
dependsOn(dependentTasks) dependsOn(dependentTasks)
workingDir(outputDir) workingDir(outputDir)
commandLine("cargo", "check", "--lib", "--tests", "--benches") commandLine("cargo", "check", "--lib", "--tests", "--benches", "--all-features")
} }
this.tasks.register<Exec>(Cargo.TEST.toString) { this.tasks.register<Exec>(Cargo.TEST.toString) {
dependsOn(dependentTasks) dependsOn(dependentTasks)
workingDir(outputDir) workingDir(outputDir)
commandLine("cargo", "test") commandLine("cargo", "test", "--all-features")
} }
this.tasks.register<Exec>(Cargo.DOCS.toString) { this.tasks.register<Exec>(Cargo.DOCS.toString) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment