@schemastore/xunit.runner.schema 0.0.7 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +22 -6
  2. package/index.d.ts +51 -3
  3. package/package.json +4 -4
package/README.md CHANGED
@@ -1,12 +1,28 @@
1
- # Installation
2
- > `npm install --save @schemastore/xunit.runner.schema`
1
+ # Type definitions for xunit.runner.schema
2
+
3
+ ## Installation
4
+
5
+ ```
6
+ npm i @schemastore/xunit.runner.schema
7
+ yarn add @schemastore/xunit.runner.schema
8
+ ```
9
+
10
+ ## Summary
3
11
 
4
- # Summary
5
12
  This package contains type definitions for xunit.runner.schema.
6
13
 
7
- ## Details
8
- Files were exported from https://github.com/ffflorian/schemastore-updater/tree/main/schemas/xunit.runner.schema.
14
+ ## Usage
15
+
16
+ ```ts
17
+ import * as xunit_runner_schema from '@schemastore/xunit.runner.schema';
18
+ ```
19
+
20
+ ## Note
21
+
22
+ The definitions were auto-generated by [schemastore-updater](https://github.com/ffflorian/schemastore-updater) using [`json-schema-to-typescript`](https://www.npmjs.com/package/json-schema-to-typescript).
9
23
 
10
24
  ## Additional Details
11
- * Last updated: Fri, Feb 24, 2023, 11:23:42 GMT
25
+
26
+ * [Schema source](https://github.com/SchemaStore/schemastore/tree/master/src/schemas/json/xunit.runner.schema)
27
+ * Last updated: Sat, Jul 19, 2025, 17:01:27 GMT
12
28
  * Dependencies: none
package/index.d.ts CHANGED
@@ -17,10 +17,26 @@ export interface XUnitNetRunnerConfiguration {
17
17
  * Determines whether the runner will use an app domain to discover and run tests. If you choose 'required', app domains will be required (only desktop tests can be run); if you choose 'denied', then tests will not use app domains; if you choose 'ifAvailable', then app domains use is left to the discretion of the runner. Defaults to 'ifAvailable'. Note that not all runners support app domains, so the 'required' value may not always be valid.
18
18
  */
19
19
  appDomain?: "required" | "ifAvailable" | "denied";
20
+ /**
21
+ * Determines the maximum recursive depth for object comparisons when using Assert.Equivalent.
22
+ */
23
+ assertEquivalentMaxDepth?: number;
24
+ /**
25
+ * Sets the culture used when running tests. It should be one of: a BCP 47-compatible culture name (https://www.rfc-editor.org/info/bcp47); 'invariant' for the system invariant culture; or 'default' for the current system culture.
26
+ */
27
+ culture?: string;
20
28
  /**
21
29
  * Enables or disables diagnostic information during test discovery and execution.
22
30
  */
23
31
  diagnosticMessages?: boolean;
32
+ /**
33
+ * Enables or disables converting skipped tests into failed tests.
34
+ */
35
+ failSkips?: boolean;
36
+ /**
37
+ * Enables or disables warned tests being treated as errors. Supported for v3+ test assemblies only.
38
+ */
39
+ failWarns?: boolean;
24
40
  /**
25
41
  * Enables or disables internal diagnostic information during test discovery and execution.
26
42
  */
@@ -30,9 +46,9 @@ export interface XUnitNetRunnerConfiguration {
30
46
  */
31
47
  longRunningTestSeconds?: number;
32
48
  /**
33
- * Configures the maximum number of threads to be used when parallelizing tests within this assembly. Use a value of 0 to indicate that you would like the default behavior; use a value of -1 to indicate that you do not wish to limit the number of threads used for parallelization.
49
+ * Configures the maximum number of threads to be used when parallelizing tests within this assembly. Use a value of 'default' or 0 to indicate that you would like the default behavior; use a value of 'unlimited' or -1 to indicate that you do not wish to limit the number of threads used for parallelization. Positive integer values indicate an exact number of threads; a string value formatted as a positive integer or decimal followed by 'x' indicates a thread count which is a multiple of the CPU threads available (example: '1x' would give 4 threads on a 4 thread CPU, or '1.5x' would give 6 threads on a 4 thread CPU).
34
50
  */
35
- maxParallelThreads?: number;
51
+ maxParallelThreads?: number | string;
36
52
  /**
37
53
  * Configures the default display name for test cases. If you choose 'method', the display name will be just the method (without the class name); if you choose 'classAndMethod', the default display name will be the fully qualified class name and method name.
38
54
  */
@@ -41,6 +57,10 @@ export interface XUnitNetRunnerConfiguration {
41
57
  * Configures one or more automatic transformations of test names. Flag names should be combined with a comma (i.e., flag1,flag2). Valid flags are: 'replaceUnderscoreWithSpace', 'useOperatorMonikers', 'useEscapeSequences', 'replacePeriodWithComma'. There are special flags named 'all' and 'none'.
42
58
  */
43
59
  methodDisplayOptions?: string;
60
+ /**
61
+ * Configures the algorithm used when parallelizing test collections (and a limited number of threads). Valid values are 'conservative' (default) or 'aggressive'. For more information: https://xunit.net/docs/running-tests-in-parallel#algorithms
62
+ */
63
+ parallelAlgorithm?: "conservative" | "aggressive";
44
64
  /**
45
65
  * Instructs the test runner that this assembly is willing to run in parallel with other assemblies.
46
66
  */
@@ -50,11 +70,39 @@ export interface XUnitNetRunnerConfiguration {
50
70
  */
51
71
  parallelizeTestCollections?: boolean;
52
72
  /**
53
- * Enables or disables pre-enumerate of theories so that there is an individual test case for each theory data row. Set this to 'false' to return a single test case for each theory without pre-enumerating the data ahead of time.
73
+ * Enables or disables pre-enumerate of theories so that there is an individual test case for each theory data row. Set this to 'false' to return a single test case for each theory without pre-enumerating the data ahead of time; set this to 'true' to attempt to pre-enumerate each theory row when possible.
54
74
  */
55
75
  preEnumerateTheories?: boolean;
76
+ /**
77
+ * Sets the maximum number of items to print when printing a collection, after which an ellipsis will be shown. Defaults to 5. If set to 0, there is no maximum length when printing collections collection.
78
+ */
79
+ printMaxEnumerableLength?: number;
80
+ /**
81
+ * Sets the maximum number of embedded objects to print, after which an ellipsis will be shown. Defaults to 3. If set to 1, only prints top-level objects; if set to 0, there is no maximum depth for embedded objects.
82
+ */
83
+ printMaxObjectDepth?: number;
84
+ /**
85
+ * Sets the maximum number of members to print when printing an object, after which an ellipsis will be shown. Defaults to 5. If set to 0, all object members will be printed.
86
+ */
87
+ printMaxObjectMemberCount?: number;
88
+ /**
89
+ * Sets the maximum length when printing a string value, after which an ellipsis will be shown. Defaults to 50. If set to 0, strings will not be truncated when printed.
90
+ */
91
+ printMaxStringLength?: number;
92
+ /**
93
+ * Set this to set the seed used for randomization (affects how the test cases are randomized). This is only valid for v3.0+ test assemblies; it will be ignored for v1 or v2 assemblies. If the seed value isn't set, then the system will determine a reasonable seed.
94
+ */
95
+ seed?: number;
56
96
  /**
57
97
  * Enables or disables use of shadow copying when using app domains. Has no effect if app domains are not used.
58
98
  */
59
99
  shadowCopy?: boolean;
100
+ /**
101
+ * Enables or disables showing output from ITestOutputHelper live during the test run (in addition to showing them after the test has completed).
102
+ */
103
+ showLiveOutput?: boolean;
104
+ /**
105
+ * Enable or disable stopping running further tests once a failed test has been recorded.
106
+ */
107
+ stopOnFail?: boolean;
60
108
  }
package/package.json CHANGED
@@ -7,8 +7,8 @@
7
7
  "name": "@schemastore/xunit.runner.schema",
8
8
  "repository": "https://github.com/ffflorian/schemastore-updater/tree/main/schemas/xunit.runner.schema",
9
9
  "scripts": {},
10
- "typesPublisherContentHash": "141b6d6985d0a6166d57642e751abe9f1c74cc811a984a46d43c9765d933ab11",
10
+ "typeScriptVersion": "2.2",
11
11
  "types": "index.d.ts",
12
- "version": "0.0.7",
13
- "typeScriptVersion": "2.2"
14
- }
12
+ "typesPublisherContentHash": "141b6d6985d0a6166d57642e751abe9f1c74cc811a984a46d43c9765d933ab11",
13
+ "version": "0.0.9"
14
+ }