Bump the github-actions group with 1 update #550
GitHub Actions / .NET Tests
succeeded
Aug 28, 2023 in 1s
.NET Tests ✔️
Report | Passed | Failed | Skipped | Time |
---|---|---|---|---|
macos-latest_net6.0_20230828183027.trx | 121✔️ | 1✖️ | 5s | |
macos-latest_netcoreapp3.1_20230828183021.trx | 2s | |||
ubuntu-latest_net6.0_20230828183011.trx | 121✔️ | 1✖️ | 11s | |
ubuntu-latest_netcoreapp3.1_20230828183000.trx | 1s | |||
windows-latest_net6.0_20230828183617.trx | 123✔️ | 1✖️ | 3s | |
windows-latest_netcoreapp3.1_20230828183613.trx | 2s |
✔️ macos-latest_net6.0_20230828183027.trx
122 tests were completed in 5s with 121 passed, 0 failed and 1 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
RunScript.ArgumentBuilderTests | 37✔️ | 63ms | ||
RunScript.CommandBuilderTests | 13✔️ | 984ms | ||
RunScript.CommandGroupRunnerTests | 16✔️ | 1s | ||
RunScript.ConsoleHelpersTests | 20✔️ | 6ms | ||
RunScript.GlobalCommandsTests | 2✔️ | 670ms | ||
RunScript.Integration.CommandBuilderTests+UnixPlatforms | 2✔️ | 4s | ||
RunScript.Integration.CommandBuilderTests+WindowsPlatform | 1✖️ | 1ms | ||
RunScript.Logging.GitHubActionsLogGroupTests | 1✔️ | 117ms | ||
RunScript.ProjectLoaderTests | 6✔️ | 912ms | ||
RunScript.RunScriptCommandTests+FindScripts | 5✔️ | 32ms | ||
RunScript.RunScriptCommandTests+RunResults | 7✔️ | 870ms | ||
RunScript.ValueStringBuilderTests | 12✔️ | 184ms |
✔️ RunScript.ArgumentBuilderTests
✔️ ConcatinateCommandAndArgArrayForDisplay(args: ["\" hello \""], expected: "c m d \" hello \"")
✔️ ConcatinateCommandAndArgArrayForDisplay(args: ["\"quotedwith\\backslash\""], expected: "c m d \"quotedwith\\backslash\"")
✔️ ConcatinateCommandAndArgArrayForDisplay(args: ["backslash\\\"preceedingquote"], expected: "c m d backslash\\\"preceedingquote")
✔️ ConcatinateCommandAndArgArrayForDisplay(args: ["C:\\Program Files\\dotnet\\"], expected: "c m d C:\\Program Files\\dotnet\\")
✔️ ConcatinateCommandAndArgArrayForDisplay(args: ["C:\\Users\\"], expected: "c m d C:\\Users\\")
✔️ ConcatinateCommandAndArgArrayForDisplay(args: ["line1\nline2", "word1\tword2"], expected: "c m d line1\nline2 word1\tword2")
✔️ ConcatinateCommandAndArgArrayForDisplay(args: ["one", "two", "three"], expected: "c m d one two three")
✔️ ConcatinateCommandAndArgArrayForDisplay(args: ["with spaces"], expected: "c m d with spaces")
✔️ ConcatinateCommandAndArgArrayForDisplay(args: ["with\\backslash"], expected: "c m d with\\backslash")
✔️ ConcatinateCommandAndArgArrayForDisplay(args: [], expected: "c m d")
✔️ ConcatinateCommandAndArgArrayForDisplay(args: null, expected: "c m d")
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "c m d", args: ["\" hello \""], expected: "c m d^ ^\"^\"^ ^h^e^l^l^o^ ^\"^\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "c m d", args: ["\"quotedwith\\backslash\""], expected: "c m d^ ^\"^q^u^o^t^e^d^w^i^t^h^\\^b^a^c^k^s^l^a^s^"···)
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "c m d", args: ["backslash\\\"preceedingquote"], expected: "c m d^ ^b^a^c^k^s^l^a^s^h^\\^\"^p^r^e^c^e^e^d^i^n^"···)
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "c m d", args: ["C:\\Program Files\\dotnet\\"], expected: "c m d^ ^\"^C^:^\\^P^r^o^g^r^a^m^ ^F^i^l^e^s^\\^d^o"···)
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "c m d", args: ["C:\\Users\\"], expected: "c m d^ ^C^:^\\^U^s^e^r^s^\\")
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "c m d", args: ["line1\nline2", "word1\tword2"], expected: "c m d^ ^\"^l^i^n^e^1^\n^l^i^n^e^2^\"^ ^\"^w^o^r^d^"···)
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "c m d", args: ["one", "two", "three"], expected: "c m d^ ^o^n^e^ ^t^w^o^ ^t^h^r^e^e")
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "c m d", args: ["with spaces"], expected: "c m d^ ^\"^w^i^t^h^ ^s^p^a^c^e^s^\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "c m d", args: ["with\\backslash"], expected: "c m d^ ^w^i^t^h^\\^b^a^c^k^s^l^a^s^h")
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "c m d", args: [], expected: "c m d")
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "c m d", args: null, expected: "c m d")
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "cm \"d\"", args: null, expected: "cm \"d\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "cmd", args: null, expected: "cmd")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "c m d", args: ["\" hello \""], expected: "c m d \"\\\" hello \\\"\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "c m d", args: ["\"quotedwith\\backslash\""], expected: "c m d \"\\\"quotedwith\\backslash\\\"\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "c m d", args: ["backslash\\\"preceedingquote"], expected: "c m d \"backslash\\\\\\\"preceedingquote\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "c m d", args: ["C:\\Program Files\\dotnet\\"], expected: "c m d \"C:\\Program Files\\dotnet\\\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "c m d", args: ["C:\\Users\\"], expected: "c m d \"C:\\Users\\\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "c m d", args: ["line1\nline2", "word1\tword2"], expected: "c m d \"line1\nline2\" \"word1\tword2\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "c m d", args: ["one", "two", "three"], expected: "c m d \"one\" \"two\" \"three\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "c m d", args: ["with spaces"], expected: "c m d \"with spaces\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "c m d", args: ["with\\backslash"], expected: "c m d \"with\\backslash\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "c m d", args: [], expected: "c m d")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "c m d", args: null, expected: "c m d")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "cm \"d\"", args: null, expected: "cm \"d\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "cmd", args: null, expected: "cmd")
✔️ RunScript.CommandBuilderTests
✔️ CreateGroupRunner_should_create_a_runner(isWindows: False)
✔️ CreateGroupRunner_should_create_a_runner(isWindows: True)
✔️ IsCmdCheck_should_match_cmd_variations(shell: "c:\\dir\\cmd.exe")
✔️ IsCmdCheck_should_match_cmd_variations(shell: "c:\\dir\\cmd")
✔️ IsCmdCheck_should_match_cmd_variations(shell: "cmd.exe")
✔️ IsCmdCheck_should_match_cmd_variations(shell: "cmd")
✔️ IsCmdCheck_should_not_match_non_cmd_variations(shell: "pwsh")
✔️ IsCmdCheck_should_not_match_non_cmd_variations(shell: "sh")
✔️ SetUpEnvironment_should_default_to_comspec_env_var_only_on_windows(isWindows: False)
✔️ SetUpEnvironment_should_default_to_comspec_env_var_only_on_windows(isWindows: True)
✔️ SetUpEnvironment_should_fall_back_to_cmd_on_windows
✔️ SetUpEnvironment_should_use_custom_shell(isWindows: False)
✔️ SetUpEnvironment_should_use_custom_shell(isWindows: True)
✔️ RunScript.CommandGroupRunnerTests
✔️ Should_emit_environment_variable_list_and_pre_and_post_scripts_when_env_script_not_defined(isWindows: False)
✔️ Should_emit_environment_variable_list_and_pre_and_post_scripts_when_env_script_not_defined(isWindows: True)
✔️ Should_emit_environment_variable_list_when_env_script_not_defined(isWindows: False)
✔️ Should_emit_environment_variable_list_when_env_script_not_defined(isWindows: True)
✔️ Should_return_first_error_hit(isWindows: False)
✔️ Should_return_first_error_hit(isWindows: True)
✔️ Should_run_a_single_script(isWindows: False)
✔️ Should_run_a_single_script(isWindows: True)
✔️ Should_run_env_script_if_defined(isWindows: False)
✔️ Should_run_env_script_if_defined(isWindows: True)
✔️ Should_run_with_a_post_script(isWindows: False)
✔️ Should_run_with_a_post_script(isWindows: True)
✔️ Should_run_with_a_pre_and_post_script(isWindows: False)
✔️ Should_run_with_a_pre_and_post_script(isWindows: True)
✔️ Should_run_with_a_pre_script(isWindows: False)
✔️ Should_run_with_a_pre_script(isWindows: True)
✔️ RunScript.ConsoleHelpersTests
✔️ FormatInfoBuilder_should_support_DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION_env_var(value: "0", expected: False)
✔️ FormatInfoBuilder_should_support_DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION_env_var(value: "1", expected: True)
✔️ FormatInfoBuilder_should_support_DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION_env_var(value: "anything else", expected: False)
✔️ FormatInfoBuilder_should_support_DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION_env_var(value: "false", expected: False)
✔️ FormatInfoBuilder_should_support_DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION_env_var(value: "FaLsE", expected: False)
✔️ FormatInfoBuilder_should_support_DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION_env_var(value: "FALSE", expected: False)
✔️ FormatInfoBuilder_should_support_DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION_env_var(value: "no", expected: False)
✔️ FormatInfoBuilder_should_support_DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION_env_var(value: "true", expected: True)
✔️ FormatInfoBuilder_should_support_DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION_env_var(value: "TrUe", expected: True)
✔️ FormatInfoBuilder_should_support_DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION_env_var(value: "TRUE", expected: True)
✔️ FormatInfoBuilder_should_support_NO_COLOR_env_var(value: "0")
✔️ FormatInfoBuilder_should_support_NO_COLOR_env_var(value: "1")
✔️ FormatInfoBuilder_should_support_NO_COLOR_env_var(value: "anything else")
✔️ FormatInfoBuilder_should_support_NO_COLOR_env_var(value: "false")
✔️ FormatInfoBuilder_should_support_NO_COLOR_env_var(value: "FaLsE")
✔️ FormatInfoBuilder_should_support_NO_COLOR_env_var(value: "FALSE")
✔️ FormatInfoBuilder_should_support_NO_COLOR_env_var(value: "no")
✔️ FormatInfoBuilder_should_support_NO_COLOR_env_var(value: "true")
✔️ FormatInfoBuilder_should_support_NO_COLOR_env_var(value: "TrUe")
✔️ FormatInfoBuilder_should_support_NO_COLOR_env_var(value: "TRUE")
✔️ RunScript.GlobalCommandsTests
✔️ Should_log_all_available_environment_variables
✔️ Should_log_all_available_scripts
✔️ RunScript.Integration.CommandBuilderTests+UnixPlatforms
✔️ Should_execute_single_script_in_shell(shellOverride: "pwsh")
✔️ Should_execute_single_script_in_shell(shellOverride: null)
✔️ RunScript.Integration.CommandBuilderTests+WindowsPlatform
✖️ Should_execute_single_script_in_shell
✔️ RunScript.Logging.GitHubActionsLogGroupTests
✔️ Should_escape_group_name
✔️ RunScript.ProjectLoaderTests
✔️ Should_find_in_root
✔️ Should_look_up_the_tree
✔️ Should_throw_if_malformed_file
✔️ Should_throw_if_no_globaljson_found_in_tree
✔️ Should_throw_if_no_scripts_found
✔️ Should_treat_script_names_as_lowercase
✔️ RunScript.RunScriptCommandTests+FindScripts
✔️ Should_match_exact_script_names
✔️ Should_match_multiple_segments
✔️ Should_match_only_1_segment
✔️ Should_match_only_1_trailing_segment
✔️ Should_match_wildcard_script_names
✔️ RunScript.RunScriptCommandTests+RunResults
✔️ Should_handle_any_error_result(exitCode: 1)
✔️ Should_handle_any_error_result(exitCode: 13)
✔️ Should_handle_multiple_error_results
✔️ Should_handle_multiple_success_results
✔️ Should_handle_single_result(exitCode: 0)
✔️ Should_handle_single_result(exitCode: 1)
✔️ Should_handle_single_result(exitCode: 13)
✔️ RunScript.ValueStringBuilderTests
✔️ Append_Char_MatchesStringBuilder
✔️ Append_CharInt_MatchesStringBuilder
✔️ Append_String_Large_MatchesStringBuilder(initialLength: 0, stringLength: 4194304)
✔️ Append_String_Large_MatchesStringBuilder(initialLength: 1025, stringLength: 4194304)
✔️ Append_String_Large_MatchesStringBuilder(initialLength: 3145728, stringLength: 6291456)
✔️ Append_String_MatchesStringBuilder
✔️ Ctor_Default_CanAppend
✔️ Ctor_Span_CanAppend
✔️ Dispose_ClearsBuilder_ThenReusable
✔️ ToString_ClearsBuilder_ThenReusable
✔️ TryCopyTo_ClearsBuilder_ThenReusable
✔️ TryCopyTo_FailsWhenDestinationIsTooSmall_SucceedsWhenItsLargeEnough
✔️ macos-latest_netcoreapp3.1_20230828183021.trx
No tests found
✔️ ubuntu-latest_net6.0_20230828183011.trx
122 tests were completed in 11s with 121 passed, 0 failed and 1 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
RunScript.ArgumentBuilderTests | 37✔️ | 19ms | ||
RunScript.CommandBuilderTests | 13✔️ | 2s | ||
RunScript.CommandGroupRunnerTests | 16✔️ | 2s | ||
RunScript.ConsoleHelpersTests | 20✔️ | 3ms | ||
RunScript.GlobalCommandsTests | 2✔️ | 2s | ||
RunScript.Integration.CommandBuilderTests+UnixPlatforms | 2✔️ | 9s | ||
RunScript.Integration.CommandBuilderTests+WindowsPlatform | 1✖️ | 1ms | ||
RunScript.Logging.GitHubActionsLogGroupTests | 1✔️ | 365ms | ||
RunScript.ProjectLoaderTests | 6✔️ | 2s | ||
RunScript.RunScriptCommandTests+FindScripts | 5✔️ | 28ms | ||
RunScript.RunScriptCommandTests+RunResults | 7✔️ | 2s | ||
RunScript.ValueStringBuilderTests | 12✔️ | 140ms |
✔️ RunScript.ArgumentBuilderTests
✔️ ConcatinateCommandAndArgArrayForDisplay(args: ["\" hello \""], expected: "c m d \" hello \"")
✔️ ConcatinateCommandAndArgArrayForDisplay(args: ["\"quotedwith\\backslash\""], expected: "c m d \"quotedwith\\backslash\"")
✔️ ConcatinateCommandAndArgArrayForDisplay(args: ["backslash\\\"preceedingquote"], expected: "c m d backslash\\\"preceedingquote")
✔️ ConcatinateCommandAndArgArrayForDisplay(args: ["C:\\Program Files\\dotnet\\"], expected: "c m d C:\\Program Files\\dotnet\\")
✔️ ConcatinateCommandAndArgArrayForDisplay(args: ["C:\\Users\\"], expected: "c m d C:\\Users\\")
✔️ ConcatinateCommandAndArgArrayForDisplay(args: ["line1\nline2", "word1\tword2"], expected: "c m d line1\nline2 word1\tword2")
✔️ ConcatinateCommandAndArgArrayForDisplay(args: ["one", "two", "three"], expected: "c m d one two three")
✔️ ConcatinateCommandAndArgArrayForDisplay(args: ["with spaces"], expected: "c m d with spaces")
✔️ ConcatinateCommandAndArgArrayForDisplay(args: ["with\\backslash"], expected: "c m d with\\backslash")
✔️ ConcatinateCommandAndArgArrayForDisplay(args: [], expected: "c m d")
✔️ ConcatinateCommandAndArgArrayForDisplay(args: null, expected: "c m d")
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "c m d", args: ["\" hello \""], expected: "c m d^ ^\"^\"^ ^h^e^l^l^o^ ^\"^\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "c m d", args: ["\"quotedwith\\backslash\""], expected: "c m d^ ^\"^q^u^o^t^e^d^w^i^t^h^\\^b^a^c^k^s^l^a^s^"···)
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "c m d", args: ["backslash\\\"preceedingquote"], expected: "c m d^ ^b^a^c^k^s^l^a^s^h^\\^\"^p^r^e^c^e^e^d^i^n^"···)
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "c m d", args: ["C:\\Program Files\\dotnet\\"], expected: "c m d^ ^\"^C^:^\\^P^r^o^g^r^a^m^ ^F^i^l^e^s^\\^d^o"···)
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "c m d", args: ["C:\\Users\\"], expected: "c m d^ ^C^:^\\^U^s^e^r^s^\\")
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "c m d", args: ["line1\nline2", "word1\tword2"], expected: "c m d^ ^\"^l^i^n^e^1^\n^l^i^n^e^2^\"^ ^\"^w^o^r^d^"···)
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "c m d", args: ["one", "two", "three"], expected: "c m d^ ^o^n^e^ ^t^w^o^ ^t^h^r^e^e")
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "c m d", args: ["with spaces"], expected: "c m d^ ^\"^w^i^t^h^ ^s^p^a^c^e^s^\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "c m d", args: ["with\\backslash"], expected: "c m d^ ^w^i^t^h^\\^b^a^c^k^s^l^a^s^h")
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "c m d", args: [], expected: "c m d")
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "c m d", args: null, expected: "c m d")
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "cm \"d\"", args: null, expected: "cm \"d\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "cmd", args: null, expected: "cmd")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "c m d", args: ["\" hello \""], expected: "c m d \"\\\" hello \\\"\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "c m d", args: ["\"quotedwith\\backslash\""], expected: "c m d \"\\\"quotedwith\\backslash\\\"\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "c m d", args: ["backslash\\\"preceedingquote"], expected: "c m d \"backslash\\\\\\\"preceedingquote\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "c m d", args: ["C:\\Program Files\\dotnet\\"], expected: "c m d \"C:\\Program Files\\dotnet\\\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "c m d", args: ["C:\\Users\\"], expected: "c m d \"C:\\Users\\\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "c m d", args: ["line1\nline2", "word1\tword2"], expected: "c m d \"line1\nline2\" \"word1\tword2\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "c m d", args: ["one", "two", "three"], expected: "c m d \"one\" \"two\" \"three\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "c m d", args: ["with spaces"], expected: "c m d \"with spaces\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "c m d", args: ["with\\backslash"], expected: "c m d \"with\\backslash\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "c m d", args: [], expected: "c m d")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "c m d", args: null, expected: "c m d")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "cm \"d\"", args: null, expected: "cm \"d\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "cmd", args: null, expected: "cmd")
✔️ RunScript.CommandBuilderTests
✔️ CreateGroupRunner_should_create_a_runner(isWindows: False)
✔️ CreateGroupRunner_should_create_a_runner(isWindows: True)
✔️ IsCmdCheck_should_match_cmd_variations(shell: "c:\\dir\\cmd.exe")
✔️ IsCmdCheck_should_match_cmd_variations(shell: "c:\\dir\\cmd")
✔️ IsCmdCheck_should_match_cmd_variations(shell: "cmd.exe")
✔️ IsCmdCheck_should_match_cmd_variations(shell: "cmd")
✔️ IsCmdCheck_should_not_match_non_cmd_variations(shell: "pwsh")
✔️ IsCmdCheck_should_not_match_non_cmd_variations(shell: "sh")
✔️ SetUpEnvironment_should_default_to_comspec_env_var_only_on_windows(isWindows: False)
✔️ SetUpEnvironment_should_default_to_comspec_env_var_only_on_windows(isWindows: True)
✔️ SetUpEnvironment_should_fall_back_to_cmd_on_windows
✔️ SetUpEnvironment_should_use_custom_shell(isWindows: False)
✔️ SetUpEnvironment_should_use_custom_shell(isWindows: True)
✔️ RunScript.CommandGroupRunnerTests
✔️ Should_emit_environment_variable_list_and_pre_and_post_scripts_when_env_script_not_defined(isWindows: False)
✔️ Should_emit_environment_variable_list_and_pre_and_post_scripts_when_env_script_not_defined(isWindows: True)
✔️ Should_emit_environment_variable_list_when_env_script_not_defined(isWindows: False)
✔️ Should_emit_environment_variable_list_when_env_script_not_defined(isWindows: True)
✔️ Should_return_first_error_hit(isWindows: False)
✔️ Should_return_first_error_hit(isWindows: True)
✔️ Should_run_a_single_script(isWindows: False)
✔️ Should_run_a_single_script(isWindows: True)
✔️ Should_run_env_script_if_defined(isWindows: False)
✔️ Should_run_env_script_if_defined(isWindows: True)
✔️ Should_run_with_a_post_script(isWindows: False)
✔️ Should_run_with_a_post_script(isWindows: True)
✔️ Should_run_with_a_pre_and_post_script(isWindows: False)
✔️ Should_run_with_a_pre_and_post_script(isWindows: True)
✔️ Should_run_with_a_pre_script(isWindows: False)
✔️ Should_run_with_a_pre_script(isWindows: True)
✔️ RunScript.ConsoleHelpersTests
✔️ FormatInfoBuilder_should_support_DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION_env_var(value: "0", expected: False)
✔️ FormatInfoBuilder_should_support_DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION_env_var(value: "1", expected: True)
✔️ FormatInfoBuilder_should_support_DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION_env_var(value: "anything else", expected: False)
✔️ FormatInfoBuilder_should_support_DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION_env_var(value: "false", expected: False)
✔️ FormatInfoBuilder_should_support_DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION_env_var(value: "FaLsE", expected: False)
✔️ FormatInfoBuilder_should_support_DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION_env_var(value: "FALSE", expected: False)
✔️ FormatInfoBuilder_should_support_DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION_env_var(value: "no", expected: False)
✔️ FormatInfoBuilder_should_support_DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION_env_var(value: "true", expected: True)
✔️ FormatInfoBuilder_should_support_DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION_env_var(value: "TrUe", expected: True)
✔️ FormatInfoBuilder_should_support_DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION_env_var(value: "TRUE", expected: True)
✔️ FormatInfoBuilder_should_support_NO_COLOR_env_var(value: "0")
✔️ FormatInfoBuilder_should_support_NO_COLOR_env_var(value: "1")
✔️ FormatInfoBuilder_should_support_NO_COLOR_env_var(value: "anything else")
✔️ FormatInfoBuilder_should_support_NO_COLOR_env_var(value: "false")
✔️ FormatInfoBuilder_should_support_NO_COLOR_env_var(value: "FaLsE")
✔️ FormatInfoBuilder_should_support_NO_COLOR_env_var(value: "FALSE")
✔️ FormatInfoBuilder_should_support_NO_COLOR_env_var(value: "no")
✔️ FormatInfoBuilder_should_support_NO_COLOR_env_var(value: "true")
✔️ FormatInfoBuilder_should_support_NO_COLOR_env_var(value: "TrUe")
✔️ FormatInfoBuilder_should_support_NO_COLOR_env_var(value: "TRUE")
✔️ RunScript.GlobalCommandsTests
✔️ Should_log_all_available_environment_variables
✔️ Should_log_all_available_scripts
✔️ RunScript.Integration.CommandBuilderTests+UnixPlatforms
✔️ Should_execute_single_script_in_shell(shellOverride: "pwsh")
✔️ Should_execute_single_script_in_shell(shellOverride: null)
✔️ RunScript.Integration.CommandBuilderTests+WindowsPlatform
✖️ Should_execute_single_script_in_shell
✔️ RunScript.Logging.GitHubActionsLogGroupTests
✔️ Should_escape_group_name
✔️ RunScript.ProjectLoaderTests
✔️ Should_find_in_root
✔️ Should_look_up_the_tree
✔️ Should_throw_if_malformed_file
✔️ Should_throw_if_no_globaljson_found_in_tree
✔️ Should_throw_if_no_scripts_found
✔️ Should_treat_script_names_as_lowercase
✔️ RunScript.RunScriptCommandTests+FindScripts
✔️ Should_match_exact_script_names
✔️ Should_match_multiple_segments
✔️ Should_match_only_1_segment
✔️ Should_match_only_1_trailing_segment
✔️ Should_match_wildcard_script_names
✔️ RunScript.RunScriptCommandTests+RunResults
✔️ Should_handle_any_error_result(exitCode: 1)
✔️ Should_handle_any_error_result(exitCode: 13)
✔️ Should_handle_multiple_error_results
✔️ Should_handle_multiple_success_results
✔️ Should_handle_single_result(exitCode: 0)
✔️ Should_handle_single_result(exitCode: 1)
✔️ Should_handle_single_result(exitCode: 13)
✔️ RunScript.ValueStringBuilderTests
✔️ Append_Char_MatchesStringBuilder
✔️ Append_CharInt_MatchesStringBuilder
✔️ Append_String_Large_MatchesStringBuilder(initialLength: 0, stringLength: 4194304)
✔️ Append_String_Large_MatchesStringBuilder(initialLength: 1025, stringLength: 4194304)
✔️ Append_String_Large_MatchesStringBuilder(initialLength: 3145728, stringLength: 6291456)
✔️ Append_String_MatchesStringBuilder
✔️ Ctor_Default_CanAppend
✔️ Ctor_Span_CanAppend
✔️ Dispose_ClearsBuilder_ThenReusable
✔️ ToString_ClearsBuilder_ThenReusable
✔️ TryCopyTo_ClearsBuilder_ThenReusable
✔️ TryCopyTo_FailsWhenDestinationIsTooSmall_SucceedsWhenItsLargeEnough
✔️ ubuntu-latest_netcoreapp3.1_20230828183000.trx
No tests found
✔️ windows-latest_net6.0_20230828183617.trx
124 tests were completed in 3s with 123 passed, 0 failed and 1 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
RunScript.ArgumentBuilderTests | 37✔️ | 88ms | ||
RunScript.CommandBuilderTests | 13✔️ | 1s | ||
RunScript.CommandGroupRunnerTests | 16✔️ | 1s | ||
RunScript.ConsoleHelpersTests | 20✔️ | 5ms | ||
RunScript.GlobalCommandsTests | 2✔️ | 133ms | ||
RunScript.Integration.CommandBuilderTests+UnixPlatforms | 1✖️ | 1ms | ||
RunScript.Integration.CommandBuilderTests+WindowsPlatform | 4✔️ | 1s | ||
RunScript.Logging.GitHubActionsLogGroupTests | 1✔️ | 94ms | ||
RunScript.ProjectLoaderTests | 6✔️ | 842ms | ||
RunScript.RunScriptCommandTests+FindScripts | 5✔️ | 20ms | ||
RunScript.RunScriptCommandTests+RunResults | 7✔️ | 971ms | ||
RunScript.ValueStringBuilderTests | 12✔️ | 236ms |
✔️ RunScript.ArgumentBuilderTests
✔️ ConcatinateCommandAndArgArrayForDisplay(args: ["\" hello \""], expected: "c m d \" hello \"")
✔️ ConcatinateCommandAndArgArrayForDisplay(args: ["\"quotedwith\\backslash\""], expected: "c m d \"quotedwith\\backslash\"")
✔️ ConcatinateCommandAndArgArrayForDisplay(args: ["backslash\\\"preceedingquote"], expected: "c m d backslash\\\"preceedingquote")
✔️ ConcatinateCommandAndArgArrayForDisplay(args: ["C:\\Program Files\\dotnet\\"], expected: "c m d C:\\Program Files\\dotnet\\")
✔️ ConcatinateCommandAndArgArrayForDisplay(args: ["C:\\Users\\"], expected: "c m d C:\\Users\\")
✔️ ConcatinateCommandAndArgArrayForDisplay(args: ["line1\nline2", "word1\tword2"], expected: "c m d line1\nline2 word1\tword2")
✔️ ConcatinateCommandAndArgArrayForDisplay(args: ["one", "two", "three"], expected: "c m d one two three")
✔️ ConcatinateCommandAndArgArrayForDisplay(args: ["with spaces"], expected: "c m d with spaces")
✔️ ConcatinateCommandAndArgArrayForDisplay(args: ["with\\backslash"], expected: "c m d with\\backslash")
✔️ ConcatinateCommandAndArgArrayForDisplay(args: [], expected: "c m d")
✔️ ConcatinateCommandAndArgArrayForDisplay(args: null, expected: "c m d")
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "c m d", args: ["\" hello \""], expected: "c m d^ ^\"^\"^ ^h^e^l^l^o^ ^\"^\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "c m d", args: ["\"quotedwith\\backslash\""], expected: "c m d^ ^\"^q^u^o^t^e^d^w^i^t^h^\\^b^a^c^k^s^l^a^s^"···)
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "c m d", args: ["backslash\\\"preceedingquote"], expected: "c m d^ ^b^a^c^k^s^l^a^s^h^\\^\"^p^r^e^c^e^e^d^i^n^"···)
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "c m d", args: ["C:\\Program Files\\dotnet\\"], expected: "c m d^ ^\"^C^:^\\^P^r^o^g^r^a^m^ ^F^i^l^e^s^\\^d^o"···)
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "c m d", args: ["C:\\Users\\"], expected: "c m d^ ^C^:^\\^U^s^e^r^s^\\")
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "c m d", args: ["line1\nline2", "word1\tword2"], expected: "c m d^ ^\"^l^i^n^e^1^\n^l^i^n^e^2^\"^ ^\"^w^o^r^d^"···)
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "c m d", args: ["one", "two", "three"], expected: "c m d^ ^o^n^e^ ^t^w^o^ ^t^h^r^e^e")
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "c m d", args: ["with spaces"], expected: "c m d^ ^\"^w^i^t^h^ ^s^p^a^c^e^s^\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "c m d", args: ["with\\backslash"], expected: "c m d^ ^w^i^t^h^\\^b^a^c^k^s^l^a^s^h")
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "c m d", args: [], expected: "c m d")
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "c m d", args: null, expected: "c m d")
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "cm \"d\"", args: null, expected: "cm \"d\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForCmdProcessStart(command: "cmd", args: null, expected: "cmd")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "c m d", args: ["\" hello \""], expected: "c m d \"\\\" hello \\\"\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "c m d", args: ["\"quotedwith\\backslash\""], expected: "c m d \"\\\"quotedwith\\backslash\\\"\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "c m d", args: ["backslash\\\"preceedingquote"], expected: "c m d \"backslash\\\\\\\"preceedingquote\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "c m d", args: ["C:\\Program Files\\dotnet\\"], expected: "c m d \"C:\\Program Files\\dotnet\\\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "c m d", args: ["C:\\Users\\"], expected: "c m d \"C:\\Users\\\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "c m d", args: ["line1\nline2", "word1\tword2"], expected: "c m d \"line1\nline2\" \"word1\tword2\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "c m d", args: ["one", "two", "three"], expected: "c m d \"one\" \"two\" \"three\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "c m d", args: ["with spaces"], expected: "c m d \"with spaces\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "c m d", args: ["with\\backslash"], expected: "c m d \"with\\backslash\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "c m d", args: [], expected: "c m d")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "c m d", args: null, expected: "c m d")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "cm \"d\"", args: null, expected: "cm \"d\"")
✔️ EscapeAndConcatenateCommandAndArgArrayForProcessStart(command: "cmd", args: null, expected: "cmd")
✔️ RunScript.CommandBuilderTests
✔️ CreateGroupRunner_should_create_a_runner(isWindows: False)
✔️ CreateGroupRunner_should_create_a_runner(isWindows: True)
✔️ IsCmdCheck_should_match_cmd_variations(shell: "c:\\dir\\cmd.exe")
✔️ IsCmdCheck_should_match_cmd_variations(shell: "c:\\dir\\cmd")
✔️ IsCmdCheck_should_match_cmd_variations(shell: "cmd.exe")
✔️ IsCmdCheck_should_match_cmd_variations(shell: "cmd")
✔️ IsCmdCheck_should_not_match_non_cmd_variations(shell: "pwsh")
✔️ IsCmdCheck_should_not_match_non_cmd_variations(shell: "sh")
✔️ SetUpEnvironment_should_default_to_comspec_env_var_only_on_windows(isWindows: False)
✔️ SetUpEnvironment_should_default_to_comspec_env_var_only_on_windows(isWindows: True)
✔️ SetUpEnvironment_should_fall_back_to_cmd_on_windows
✔️ SetUpEnvironment_should_use_custom_shell(isWindows: False)
✔️ SetUpEnvironment_should_use_custom_shell(isWindows: True)
✔️ RunScript.CommandGroupRunnerTests
✔️ Should_emit_environment_variable_list_and_pre_and_post_scripts_when_env_script_not_defined(isWindows: False)
✔️ Should_emit_environment_variable_list_and_pre_and_post_scripts_when_env_script_not_defined(isWindows: True)
✔️ Should_emit_environment_variable_list_when_env_script_not_defined(isWindows: False)
✔️ Should_emit_environment_variable_list_when_env_script_not_defined(isWindows: True)
✔️ Should_return_first_error_hit(isWindows: False)
✔️ Should_return_first_error_hit(isWindows: True)
✔️ Should_run_a_single_script(isWindows: False)
✔️ Should_run_a_single_script(isWindows: True)
✔️ Should_run_env_script_if_defined(isWindows: False)
✔️ Should_run_env_script_if_defined(isWindows: True)
✔️ Should_run_with_a_post_script(isWindows: False)
✔️ Should_run_with_a_post_script(isWindows: True)
✔️ Should_run_with_a_pre_and_post_script(isWindows: False)
✔️ Should_run_with_a_pre_and_post_script(isWindows: True)
✔️ Should_run_with_a_pre_script(isWindows: False)
✔️ Should_run_with_a_pre_script(isWindows: True)
✔️ RunScript.ConsoleHelpersTests
✔️ FormatInfoBuilder_should_support_DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION_env_var(value: "0", expected: False)
✔️ FormatInfoBuilder_should_support_DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION_env_var(value: "1", expected: True)
✔️ FormatInfoBuilder_should_support_DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION_env_var(value: "anything else", expected: False)
✔️ FormatInfoBuilder_should_support_DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION_env_var(value: "false", expected: False)
✔️ FormatInfoBuilder_should_support_DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION_env_var(value: "FaLsE", expected: False)
✔️ FormatInfoBuilder_should_support_DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION_env_var(value: "FALSE", expected: False)
✔️ FormatInfoBuilder_should_support_DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION_env_var(value: "no", expected: False)
✔️ FormatInfoBuilder_should_support_DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION_env_var(value: "true", expected: True)
✔️ FormatInfoBuilder_should_support_DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION_env_var(value: "TrUe", expected: True)
✔️ FormatInfoBuilder_should_support_DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION_env_var(value: "TRUE", expected: True)
✔️ FormatInfoBuilder_should_support_NO_COLOR_env_var(value: "0")
✔️ FormatInfoBuilder_should_support_NO_COLOR_env_var(value: "1")
✔️ FormatInfoBuilder_should_support_NO_COLOR_env_var(value: "anything else")
✔️ FormatInfoBuilder_should_support_NO_COLOR_env_var(value: "false")
✔️ FormatInfoBuilder_should_support_NO_COLOR_env_var(value: "FaLsE")
✔️ FormatInfoBuilder_should_support_NO_COLOR_env_var(value: "FALSE")
✔️ FormatInfoBuilder_should_support_NO_COLOR_env_var(value: "no")
✔️ FormatInfoBuilder_should_support_NO_COLOR_env_var(value: "true")
✔️ FormatInfoBuilder_should_support_NO_COLOR_env_var(value: "TrUe")
✔️ FormatInfoBuilder_should_support_NO_COLOR_env_var(value: "TRUE")
✔️ RunScript.GlobalCommandsTests
✔️ Should_log_all_available_environment_variables
✔️ Should_log_all_available_scripts
✔️ RunScript.Integration.CommandBuilderTests+UnixPlatforms
✖️ Should_execute_single_script_in_shell
✔️ RunScript.Integration.CommandBuilderTests+WindowsPlatform
✔️ Should_execute_single_script_in_shell(shellOverride: "C:\\Program Files\\Git\\bin\\bash.exe")
✔️ Should_execute_single_script_in_shell(shellOverride: "cmd.exe")
✔️ Should_execute_single_script_in_shell(shellOverride: "pwsh")
✔️ Should_execute_single_script_in_shell(shellOverride: null)
✔️ RunScript.Logging.GitHubActionsLogGroupTests
✔️ Should_escape_group_name
✔️ RunScript.ProjectLoaderTests
✔️ Should_find_in_root
✔️ Should_look_up_the_tree
✔️ Should_throw_if_malformed_file
✔️ Should_throw_if_no_globaljson_found_in_tree
✔️ Should_throw_if_no_scripts_found
✔️ Should_treat_script_names_as_lowercase
✔️ RunScript.RunScriptCommandTests+FindScripts
✔️ Should_match_exact_script_names
✔️ Should_match_multiple_segments
✔️ Should_match_only_1_segment
✔️ Should_match_only_1_trailing_segment
✔️ Should_match_wildcard_script_names
✔️ RunScript.RunScriptCommandTests+RunResults
✔️ Should_handle_any_error_result(exitCode: 1)
✔️ Should_handle_any_error_result(exitCode: 13)
✔️ Should_handle_multiple_error_results
✔️ Should_handle_multiple_success_results
✔️ Should_handle_single_result(exitCode: 0)
✔️ Should_handle_single_result(exitCode: 1)
✔️ Should_handle_single_result(exitCode: 13)
✔️ RunScript.ValueStringBuilderTests
✔️ Append_Char_MatchesStringBuilder
✔️ Append_CharInt_MatchesStringBuilder
✔️ Append_String_Large_MatchesStringBuilder(initialLength: 0, stringLength: 4194304)
✔️ Append_String_Large_MatchesStringBuilder(initialLength: 1025, stringLength: 4194304)
✔️ Append_String_Large_MatchesStringBuilder(initialLength: 3145728, stringLength: 6291456)
✔️ Append_String_MatchesStringBuilder
✔️ Ctor_Default_CanAppend
✔️ Ctor_Span_CanAppend
✔️ Dispose_ClearsBuilder_ThenReusable
✔️ ToString_ClearsBuilder_ThenReusable
✔️ TryCopyTo_ClearsBuilder_ThenReusable
✔️ TryCopyTo_FailsWhenDestinationIsTooSmall_SucceedsWhenItsLargeEnough
✔️ windows-latest_netcoreapp3.1_20230828183613.trx
No tests found
Loading