Skip to content

Commit

Permalink
Update integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasLYang committed Nov 5, 2024
1 parent 7abf036 commit 9be223f
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 34 deletions.
18 changes: 10 additions & 8 deletions turborepo-tests/integration/tests/no-args.t
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,22 @@ Make sure exit code is 2 when no args are passed
Print help (see more with '--help')

Run Arguments:
--cache <CACHE>
Set the cache behavior for this run. Pass a list of comma-separated key, value pairs to enable reading and writing to either the local or remote cache
--force [<FORCE>]
Ignore the existing cache (to force execution). Equivalent to `--cache=local:w,remote:w` [possible values: true, false]
--remote-only [<REMOTE_ONLY>]
Ignore the local filesystem cache for all tasks. Only allow reading and caching artifacts using the remote cache. Equivalent to `--cache=remote:rw` [possible values: true, false]
--remote-cache-read-only [<REMOTE_CACHE_READ_ONLY>]
Treat remote cache as read only. Equivalent to `--cache=remote:r;local:rw` [possible values: true, false]
--no-cache
Avoid saving task results to the cache. Useful for development/watch tasks. Equivalent to `--cache=local:r,remote:r`
--cache-workers <CACHE_WORKERS>
Set the number of concurrent cache operations (default 10) [default: 10]
--dry-run [<DRY_RUN>]
[possible values: text, json]
--graph [<GRAPH>]
Generate a graph of the task execution and output to a file when a filename is specified (.svg, .png, .jpg, .pdf, .json, .html, .mermaid, .dot). Outputs dot graph to stdout when if no filename is provided
--no-cache
Avoid saving task results to the cache. Useful for development/watch tasks
--daemon
Force turbo to use the local daemon. If unset turbo will use the default detection logic
--no-daemon
Expand All @@ -81,8 +89,6 @@ Make sure exit code is 2 when no args are passed
File to write turbo's performance profile output into. You can load the file up in chrome://tracing to see which parts of your build were slow
--anon-profile <ANON_PROFILE>
File to write turbo's performance profile output into. All identifying data omitted from the profile
--remote-cache-read-only [<REMOTE_CACHE_READ_ONLY>]
Treat remote cache as read only [possible values: true, false]
--summarize [<SUMMARIZE>]
Generate a summary of the turbo run [possible values: true, false]
--parallel
Expand All @@ -95,8 +101,6 @@ Make sure exit code is 2 when no args are passed
Continue execution even if a task exits with an error or non-zero exit code. The default behavior is to bail
--single-package
Run turbo in single-package mode
--force [<FORCE>]
Ignore the existing cache (to force execution) [possible values: true, false]
--framework-inference [<BOOL>]
Specify whether or not to do framework inference for tasks [default: true] [possible values: true, false]
--global-deps <GLOBAL_DEPS>
Expand All @@ -113,8 +117,6 @@ Make sure exit code is 2 when no args are passed
Set type of task output order. Use "stream" to show output as soon as it is available. Use "grouped" to show output when a command has finished execution. Use "auto" to let turbo decide based on its own heuristics. (default auto) [possible values: auto, stream, grouped]
--only
Only executes the tasks specified, does not execute parent tasks
--remote-only [<REMOTE_ONLY>]
Ignore the local filesystem cache for all tasks. Only allow reading and caching artifacts using the remote cache [possible values: true, false]
--log-prefix <LOG_PREFIX>
Use "none" to remove prefixes from task logs. Use "task" to get task id prefixing. Use "auto" to let turbo decide how to prefix the logs based on the execution environment. In most cases this will be the same as "task". Note that tasks running in parallel interleave their logs, so removing prefixes can make it difficult to associate logs with tasks. Use --log-order=grouped to prevent interleaving. (default auto) [default: auto] [possible values: auto, none, task]
[1]
Expand Down
57 changes: 31 additions & 26 deletions turborepo-tests/integration/tests/turbo-help.t
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,22 @@ Test help flag
Print help (see more with '--help')

Run Arguments:
--cache <CACHE>
Set the cache behavior for this run. Pass a list of comma-separated key, value pairs to enable reading and writing to either the local or remote cache
--force [<FORCE>]
Ignore the existing cache (to force execution). Equivalent to `--cache=local:w,remote:w` [possible values: true, false]
--remote-only [<REMOTE_ONLY>]
Ignore the local filesystem cache for all tasks. Only allow reading and caching artifacts using the remote cache. Equivalent to `--cache=remote:rw` [possible values: true, false]
--remote-cache-read-only [<REMOTE_CACHE_READ_ONLY>]
Treat remote cache as read only. Equivalent to `--cache=remote:r;local:rw` [possible values: true, false]
--no-cache
Avoid saving task results to the cache. Useful for development/watch tasks. Equivalent to `--cache=local:r,remote:r`
--cache-workers <CACHE_WORKERS>
Set the number of concurrent cache operations (default 10) [default: 10]
--dry-run [<DRY_RUN>]
[possible values: text, json]
--graph [<GRAPH>]
Generate a graph of the task execution and output to a file when a filename is specified (.svg, .png, .jpg, .pdf, .json, .html, .mermaid, .dot). Outputs dot graph to stdout when if no filename is provided
--no-cache
Avoid saving task results to the cache. Useful for development/watch tasks
--daemon
Force turbo to use the local daemon. If unset turbo will use the default detection logic
--no-daemon
Expand All @@ -81,8 +89,6 @@ Test help flag
File to write turbo's performance profile output into. You can load the file up in chrome://tracing to see which parts of your build were slow
--anon-profile <ANON_PROFILE>
File to write turbo's performance profile output into. All identifying data omitted from the profile
--remote-cache-read-only [<REMOTE_CACHE_READ_ONLY>]
Treat remote cache as read only [possible values: true, false]
--summarize [<SUMMARIZE>]
Generate a summary of the turbo run [possible values: true, false]
--parallel
Expand All @@ -95,8 +101,6 @@ Test help flag
Continue execution even if a task exits with an error or non-zero exit code. The default behavior is to bail
--single-package
Run turbo in single-package mode
--force [<FORCE>]
Ignore the existing cache (to force execution) [possible values: true, false]
--framework-inference [<BOOL>]
Specify whether or not to do framework inference for tasks [default: true] [possible values: true, false]
--global-deps <GLOBAL_DEPS>
Expand All @@ -113,8 +117,6 @@ Test help flag
Set type of task output order. Use "stream" to show output as soon as it is available. Use "grouped" to show output when a command has finished execution. Use "auto" to let turbo decide based on its own heuristics. (default auto) [possible values: auto, stream, grouped]
--only
Only executes the tasks specified, does not execute parent tasks
--remote-only [<REMOTE_ONLY>]
Ignore the local filesystem cache for all tasks. Only allow reading and caching artifacts using the remote cache [possible values: true, false]
--log-prefix <LOG_PREFIX>
Use "none" to remove prefixes from task logs. Use "task" to get task id prefixing. Use "auto" to let turbo decide how to prefix the logs based on the execution environment. In most cases this will be the same as "task". Note that tasks running in parallel interleave their logs, so removing prefixes can make it difficult to associate logs with tasks. Use --log-order=grouped to prevent interleaving. (default auto) [default: auto] [possible values: auto, none, task]

Expand Down Expand Up @@ -211,6 +213,27 @@ Test help flag
Print help (see a summary with '-h')

Run Arguments:
--cache <CACHE>
Set the cache behavior for this run. Pass a list of comma-separated key, value pairs to enable reading and writing to either the local or remote cache

--force [<FORCE>]
Ignore the existing cache (to force execution). Equivalent to `--cache=local:w,remote:w`

[possible values: true, false]

--remote-only [<REMOTE_ONLY>]
Ignore the local filesystem cache for all tasks. Only allow reading and caching artifacts using the remote cache. Equivalent to `--cache=remote:rw`

[possible values: true, false]

--remote-cache-read-only [<REMOTE_CACHE_READ_ONLY>]
Treat remote cache as read only. Equivalent to `--cache=remote:r;local:rw`

[possible values: true, false]

--no-cache
Avoid saving task results to the cache. Useful for development/watch tasks. Equivalent to `--cache=local:r,remote:r`

--cache-workers <CACHE_WORKERS>
Set the number of concurrent cache operations (default 10)

Expand All @@ -222,9 +245,6 @@ Test help flag
--graph [<GRAPH>]
Generate a graph of the task execution and output to a file when a filename is specified (.svg, .png, .jpg, .pdf, .json, .html, .mermaid, .dot). Outputs dot graph to stdout when if no filename is provided

--no-cache
Avoid saving task results to the cache. Useful for development/watch tasks

--daemon
Force turbo to use the local daemon. If unset turbo will use the default detection logic

Expand All @@ -237,11 +257,6 @@ Test help flag
--anon-profile <ANON_PROFILE>
File to write turbo's performance profile output into. All identifying data omitted from the profile

--remote-cache-read-only [<REMOTE_CACHE_READ_ONLY>]
Treat remote cache as read only

[possible values: true, false]

--summarize [<SUMMARIZE>]
Generate a summary of the turbo run

Expand All @@ -262,11 +277,6 @@ Test help flag
--single-package
Run turbo in single-package mode

--force [<FORCE>]
Ignore the existing cache (to force execution)

[possible values: true, false]

--framework-inference [<BOOL>]
Specify whether or not to do framework inference for tasks

Expand Down Expand Up @@ -300,11 +310,6 @@ Test help flag
--only
Only executes the tasks specified, does not execute parent tasks

--remote-only [<REMOTE_ONLY>]
Ignore the local filesystem cache for all tasks. Only allow reading and caching artifacts using the remote cache

[possible values: true, false]

--log-prefix <LOG_PREFIX>
Use "none" to remove prefixes from task logs. Use "task" to get task id prefixing. Use "auto" to let turbo decide how to prefix the logs based on the execution environment. In most cases this will be the same as "task". Note that tasks running in parallel interleave their logs, so removing prefixes can make it difficult to associate logs with tasks. Use --log-order=grouped to prevent interleaving. (default auto)

Expand Down

0 comments on commit 9be223f

Please sign in to comment.