diff --git a/lib/init.coffee b/lib/init.coffee index c6176dc..d78b9f3 100644 --- a/lib/init.coffee +++ b/lib/init.coffee @@ -16,8 +16,8 @@ module.exports = description: "Path to Rust's package manager `cargo`" cargoCommand: type: 'string' - default: 'check all' - enum: ['build', 'check', 'check all', 'test', 'rustc', 'clippy'] + default: 'test all' + enum: ['build', 'check', 'check all', 'test', 'test all', 'rustc', 'clippy'] description: "Use 'check' for fast linting. Use 'check all' for fast linting of all packages and tests. Use 'clippy' to increase amount of available lints diff --git a/lib/mode.coffee b/lib/mode.coffee index e59bc76..0acedc5 100644 --- a/lib/mode.coffee +++ b/lib/mode.coffee @@ -175,8 +175,9 @@ buildCargoArguments = (linter, cargoManifestPath) -> cargoArgs = switch linter.cargoCommand when 'check' then ['check'] - when 'check all' then ['check', '--all', '--tests'] + when 'check all' then ['check', '--all'] when 'test' then ['test', '--no-run'] + when 'test all' then ['test', '--no-run', '--all'] when 'rustc' then ['rustc', '--color', 'never'] when 'clippy' then ['clippy'] else ['build']