Skip to content

Commit

Permalink
chore: update integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-olszewski committed Apr 15, 2024
1 parent c557683 commit d1486f5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 54 deletions.
2 changes: 1 addition & 1 deletion turborepo-tests/integration/tests/bad-flag.t
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Bad flag with an implied run command should display run flags

tip: to pass '--bad-flag' as a value, use '-- --bad-flag'

Usage: turbo(\.exe)? <--cache-dir <CACHE_DIR>|--cache-workers <CACHE_WORKERS>|--concurrency <CONCURRENCY>|--continue|--dry-run [<DRY_RUN>]|--single-package|--filter <FILTER>|--force [<FORCE>]|--framework-inference [<BOOL>]|--global-deps <GLOBAL_DEPS>|--graph [<GRAPH>]|--env-mode [<ENV_MODE>]|--ignore <IGNORE>|--include-dependencies|--no-cache|--no-daemon|--no-deps|--output-logs <OUTPUT_LOGS>|--log-order <LOG_ORDER>|--only|--parallel|--pkg-inference-root <PKG_INFERENCE_ROOT>|--profile <PROFILE>|--remote-only [<BOOL>]|--scope <SCOPE>|--since <SINCE>|--summarize [<SUMMARIZE>]|--log-prefix <LOG_PREFIX>|TASKS|PASS_THROUGH_ARGS|--experimental-space-id <EXPERIMENTAL_SPACE_ID>> (re)
Usage: turbo(\.exe)? <--cache-dir <CACHE_DIR>|--cache-workers <CACHE_WORKERS>|--concurrency <CONCURRENCY>|--continue|--dry-run [<DRY_RUN>]|--single-package|--filter <FILTER>|--force [<FORCE>]|--framework-inference [<BOOL>]|--global-deps <GLOBAL_DEPS>|--graph [<GRAPH>]|--env-mode [<ENV_MODE>]|--ignore <IGNORE>|--no-cache|--no-daemon|--output-logs <OUTPUT_LOGS>|--log-order <LOG_ORDER>|--only|--parallel|--pkg-inference-root <PKG_INFERENCE_ROOT>|--profile <PROFILE>|--remote-only [<BOOL>]|--summarize [<SUMMARIZE>]|--log-prefix <LOG_PREFIX>|TASKS|PASS_THROUGH_ARGS|--experimental-space-id <EXPERIMENTAL_SPACE_ID>> (re)

For more information, try '--help'.

Expand Down
32 changes: 3 additions & 29 deletions turborepo-tests/integration/tests/conflicting-flags.t
Original file line number Diff line number Diff line change
Expand Up @@ -8,38 +8,12 @@ Setup
For more information, try '--help'.

[1]
$ ${TURBO} run build --since main
ERROR the following required arguments were not provided:
--scope <SCOPE>

Usage: turbo(\.exe)? run --scope <SCOPE> --since <SINCE> (re)

For more information, try '--help'.

[1]

$ ${TURBO} run build --ignore 'app/**'
ERROR the following required arguments were not provided:
<--filter <FILTER>|--scope <SCOPE>>

Usage: turbo(\.exe)? run --ignore <IGNORE> <--filter <FILTER>|--scope <SCOPE>> (re)

For more information, try '--help'.

[1]
$ ${TURBO} run build --no-deps
ERROR the following required arguments were not provided:
--scope <SCOPE>

Usage: turbo(\.exe)? run --scope <SCOPE> --no-deps (re)

For more information, try '--help'.

[1]
$ ${TURBO} run build --include-dependencies
ERROR the following required arguments were not provided:
--scope <SCOPE>
<--filter <FILTER>>

Usage: turbo(\.exe)? run --scope <SCOPE> --include-dependencies (re)
Usage: turbo(\.exe)? run --ignore <IGNORE> <--filter <FILTER>> (re)

For more information, try '--help'.

Expand Down
8 changes: 0 additions & 8 deletions turborepo-tests/integration/tests/no-args.t
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,8 @@ Make sure exit code is 2 when no args are passed
Environment variable mode. Use "loose" to pass the entire existing environment. Use "strict" to use an allowlist specified in turbo.json. Use "infer" to defer to existence of "passThroughEnv" or "globalPassThroughEnv" in turbo.json. (default infer) [default: infer] [possible values: infer, loose, strict]
-F, --filter <FILTER>
Use the given selector to specify package(s) to act as entry points. The syntax mirrors pnpm's syntax, and additional documentation and examples can be found in turbo's documentation https://turbo.build/repo/docs/reference/command-line-reference/run#--filter
--scope <SCOPE>
DEPRECATED: Specify package(s) to act as entry points for task execution. Supports globs
--ignore <IGNORE>
Files to ignore when calculating changed files from '--filter'. Supports globs
--since <SINCE>
DEPRECATED: Limit/Set scope to changed packages since a mergebase. This uses the git diff ${target_branch}... mechanism to identify which packages have changed
--include-dependencies
DEPRECATED: Include the dependencies of tasks in execution
--no-deps
DEPRECATED: Exclude dependent task consumers from execution
--no-cache
Avoid saving task results to the cache. Useful for development/watch tasks
--daemon
Expand Down
16 changes: 0 additions & 16 deletions turborepo-tests/integration/tests/turbo-help.t
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,8 @@ Test help flag
Environment variable mode. Use "loose" to pass the entire existing environment. Use "strict" to use an allowlist specified in turbo.json. Use "infer" to defer to existence of "passThroughEnv" or "globalPassThroughEnv" in turbo.json. (default infer) [default: infer] [possible values: infer, loose, strict]
-F, --filter <FILTER>
Use the given selector to specify package(s) to act as entry points. The syntax mirrors pnpm's syntax, and additional documentation and examples can be found in turbo's documentation https://turbo.build/repo/docs/reference/command-line-reference/run#--filter
--scope <SCOPE>
DEPRECATED: Specify package(s) to act as entry points for task execution. Supports globs
--ignore <IGNORE>
Files to ignore when calculating changed files from '--filter'. Supports globs
--since <SINCE>
DEPRECATED: Limit/Set scope to changed packages since a mergebase. This uses the git diff ${target_branch}... mechanism to identify which packages have changed
--include-dependencies
DEPRECATED: Include the dependencies of tasks in execution
--no-deps
DEPRECATED: Exclude dependent task consumers from execution
--no-cache
Avoid saving task results to the cache. Useful for development/watch tasks
--daemon
Expand Down Expand Up @@ -170,16 +162,8 @@ Test help flag
Environment variable mode. Use "loose" to pass the entire existing environment. Use "strict" to use an allowlist specified in turbo.json. Use "infer" to defer to existence of "passThroughEnv" or "globalPassThroughEnv" in turbo.json. (default infer) [default: infer] [possible values: infer, loose, strict]
-F, --filter <FILTER>
Use the given selector to specify package(s) to act as entry points. The syntax mirrors pnpm's syntax, and additional documentation and examples can be found in turbo's documentation https://turbo.build/repo/docs/reference/command-line-reference/run#--filter
--scope <SCOPE>
DEPRECATED: Specify package(s) to act as entry points for task execution. Supports globs
--ignore <IGNORE>
Files to ignore when calculating changed files from '--filter'. Supports globs
--since <SINCE>
DEPRECATED: Limit/Set scope to changed packages since a mergebase. This uses the git diff ${target_branch}... mechanism to identify which packages have changed
--include-dependencies
DEPRECATED: Include the dependencies of tasks in execution
--no-deps
DEPRECATED: Exclude dependent task consumers from execution
--no-cache
Avoid saving task results to the cache. Useful for development/watch tasks
--daemon
Expand Down

0 comments on commit d1486f5

Please sign in to comment.