Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Fix 'check all' and Add 'test all' #122

Merged
merged 3 commits into from
Nov 30, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/init.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion lib/mode.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down