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
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -233,16 +233,17 @@ fun Project.registerCargoCommandsTasks(
            "generateCargoConfigToml",
            this.tasks.findByName("modifyMtime")?.let { "modifyMtime" },
        )

    this.tasks.register<Exec>(Cargo.CHECK.toString) {
        dependsOn(dependentTasks)
        workingDir(outputDir)
        commandLine("cargo", "check", "--lib", "--tests", "--benches")
        commandLine("cargo", "check", "--lib", "--tests", "--benches", "--all-features")
    }

    this.tasks.register<Exec>(Cargo.TEST.toString) {
        dependsOn(dependentTasks)
        workingDir(outputDir)
        commandLine("cargo", "test")
        commandLine("cargo", "test", "--all-features")
    }

    this.tasks.register<Exec>(Cargo.DOCS.toString) {