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

Commit 0727628

Browse files
alkoranggmist
authored andcommitted
Fix 'check all' and Add 'test all' (#122)
* Fix 'check all' and Add 'test all' * Add 'test all' option * Edit default value to 'test all'
1 parent 274a857 commit 0727628

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/init.coffee

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ module.exports =
1616
description: "Path to Rust's package manager `cargo`"
1717
cargoCommand:
1818
type: 'string'
19-
default: 'check all'
20-
enum: ['build', 'check', 'check all', 'test', 'rustc', 'clippy']
19+
default: 'test all'
20+
enum: ['build', 'check', 'check all', 'test', 'test all', 'rustc', 'clippy']
2121
description: "Use 'check' for fast linting.
2222
Use 'check all' for fast linting of all packages and tests.
2323
Use 'clippy' to increase amount of available lints

lib/mode.coffee

+2-1
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,9 @@ buildCargoArguments = (linter, cargoManifestPath) ->
175175

176176
cargoArgs = switch linter.cargoCommand
177177
when 'check' then ['check']
178-
when 'check all' then ['check', '--all', '--tests']
178+
when 'check all' then ['check', '--all']
179179
when 'test' then ['test', '--no-run']
180+
when 'test all' then ['test', '--no-run', '--all']
180181
when 'rustc' then ['rustc', '--color', 'never']
181182
when 'clippy' then ['clippy']
182183
else ['build']

0 commit comments

Comments
 (0)