-
Notifications
You must be signed in to change notification settings - Fork 49
/
ExitCode.cs
64 lines (50 loc) · 1.79 KB
/
ExitCode.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace Microsoft.DotNet.XHarness.Common.CLI
{
/// <summary>
/// Exit codes to use for common failure reasons; if you add a new exit code, add it here and use the enum.
/// The first part conforms with xUnit: https://xunit.net/docs/getting-started/netfx/visual-studio
/// </summary>
public enum ExitCode
{
/// <summary>
/// The tests ran successfully
/// </summary>
SUCCESS = 0,
/// <summary>
/// One or more of the tests failed
/// </summary>
TESTS_FAILED = 1,
/// <summary>
/// The help page was shown
/// Either because it was requested, or because the user did not provide any command line arguments
/// </summary>
HELP_SHOWN = 2,
/// <summary>
/// There was a problem with one of the command line options
/// </summary>
INVALID_ARGUMENTS = 3,
/// <summary>
/// There was a problem loading one or more of the test packages
/// </summary>
PACKAGE_NOT_FOUND = 4,
#region General failures
TIMED_OUT = 1000,
GENERAL_FAILURE = 1001,
#endregion
#region Running the test package
PACKAGE_INSTALLATION_FAILURE = 1102,
FAILED_TO_GET_BUNDLE_INFO = 1103,
APP_CRASH = 1104,
DEVICE_NOT_FOUND = 1105,
RETURN_CODE_NOT_SET = 1106,
APP_LAUNCH_FAILURE = 1107,
#endregion
#region Packaging the bundle
PACKAGE_BUNDLING_FAILURE_NUGET_RESTORE = 1201,
PACKAGE_BUNDLING_FAILURE_BUILD = 1202,
#endregion
}
}