mirror of
https://github.com/chenasraf/schemastore.git
synced 2026-05-17 17:58:02 +00:00
update: Add versioned xunit schemas (#2372)
* update: Add versioned xunit schemas * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -3019,8 +3019,13 @@
|
||||
{
|
||||
"name": "xunit.runner.json",
|
||||
"description": "xUnit.net runner configuration file",
|
||||
"fileMatch": ["xunit.runner.json"],
|
||||
"url": "https://json.schemastore.org/xunit.runner.schema.json"
|
||||
"fileMatch": ["xunit.runner.json", "*.xunit.runner.json"],
|
||||
"url": "https://json.schemastore.org/xunit.runner.schema.json",
|
||||
"versions": {
|
||||
"v2.2": "https://json.schemastore.org/xunit-2.2.json",
|
||||
"v2.3": "https://json.schemastore.org/xunit-2.3.json",
|
||||
"v2.4": "https://json.schemastore.org/xunit.runner.schema.json"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "servicehub.service.json",
|
||||
|
||||
55
src/schemas/json/xunit-2.2.json
Normal file
55
src/schemas/json/xunit-2.2.json
Normal file
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-04/schema",
|
||||
"additionalProperties": false,
|
||||
"description": "Configuration file for unit test projects using xUnit.net",
|
||||
"id": "https://xunit.net/schema/v2.2/xunit.runner.schema.json",
|
||||
"properties": {
|
||||
"appDomain": {
|
||||
"description": "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.",
|
||||
"default": "ifAvailable",
|
||||
"enum": ["required", "ifAvailable", "denied"]
|
||||
},
|
||||
"diagnosticMessages": {
|
||||
"description": "Enables or disables diagnostic information during test discovery and execution.",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"longRunningTestSeconds": {
|
||||
"description": "Enables reporting of tests which take longer than the configured time to complete (set to 0 to disable).",
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"maxParallelThreads": {
|
||||
"description": "Configures the maximum number of threads to be used when parallelizing tests within this assembly.",
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"methodDisplay": {
|
||||
"description": "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.",
|
||||
"default": "classAndMethod",
|
||||
"enum": ["method", "classAndMethod"]
|
||||
},
|
||||
"parallelizeAssembly": {
|
||||
"description": "Instructs the test runner that this assembly is willing to run in parallel with other assemblies.",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"parallelizeTestCollections": {
|
||||
"description": "Enables or disables tests inside this assembly from running in parallel against each other. Tests in the same test collection will be run sequentially against each other, but tests in different test collections will be run in parallel against each other.",
|
||||
"default": true,
|
||||
"type": "boolean"
|
||||
},
|
||||
"preEnumerateTheories": {
|
||||
"description": "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.",
|
||||
"default": true,
|
||||
"type": "boolean"
|
||||
},
|
||||
"shadowCopy": {
|
||||
"description": "Enables or disables use of shadow copying when using app domains. Has no effect if app domains are not used.",
|
||||
"default": true,
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"title": "xUnit.net Runner Configuration",
|
||||
"type": "object"
|
||||
}
|
||||
60
src/schemas/json/xunit-2.3.json
Normal file
60
src/schemas/json/xunit-2.3.json
Normal file
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-04/schema",
|
||||
"additionalProperties": false,
|
||||
"description": "Configuration file for unit test projects using xUnit.net",
|
||||
"id": "https://xunit.net/schema/v2.3/xunit.runner.schema.json",
|
||||
"properties": {
|
||||
"appDomain": {
|
||||
"description": "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.",
|
||||
"default": "ifAvailable",
|
||||
"enum": ["required", "ifAvailable", "denied"]
|
||||
},
|
||||
"diagnosticMessages": {
|
||||
"description": "Enables or disables diagnostic information during test discovery and execution.",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"internalDiagnosticMessages": {
|
||||
"description": "Enables or disables internal diagnostic information during test discovery and execution.",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"longRunningTestSeconds": {
|
||||
"description": "Enables reporting of tests which take longer than the configured time to complete (set to 0 to disable).",
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"maxParallelThreads": {
|
||||
"description": "Configures the maximum number of threads to be used when parallelizing tests within this assembly.",
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
},
|
||||
"methodDisplay": {
|
||||
"description": "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.",
|
||||
"default": "classAndMethod",
|
||||
"enum": ["method", "classAndMethod"]
|
||||
},
|
||||
"parallelizeAssembly": {
|
||||
"description": "Instructs the test runner that this assembly is willing to run in parallel with other assemblies.",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"parallelizeTestCollections": {
|
||||
"description": "Enables or disables tests inside this assembly from running in parallel against each other. Tests in the same test collection will be run sequentially against each other, but tests in different test collections will be run in parallel against each other.",
|
||||
"default": true,
|
||||
"type": "boolean"
|
||||
},
|
||||
"preEnumerateTheories": {
|
||||
"description": "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.",
|
||||
"default": true,
|
||||
"type": "boolean"
|
||||
},
|
||||
"shadowCopy": {
|
||||
"description": "Enables or disables use of shadow copying when using app domains. Has no effect if app domains are not used.",
|
||||
"default": true,
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"title": "xUnit.net Runner Configuration",
|
||||
"type": "object"
|
||||
}
|
||||
@@ -1,9 +1,15 @@
|
||||
{
|
||||
"$comment": "This schema was last updated for v2.4.1",
|
||||
"$schema": "http://json-schema.org/draft-04/schema",
|
||||
"additionalProperties": false,
|
||||
"description": "Configuration file for unit test projects using xUnit.net",
|
||||
"id": "https://xunit.net/schema/v2.3/xunit.runner.schema.json",
|
||||
"id": "https://xunit.net/schema/current/xunit.runner.schema.json",
|
||||
"properties": {
|
||||
"$schema": {
|
||||
"description": "The document schema",
|
||||
"default": "https://xunit.net/schema/current/xunit.runner.schema.json",
|
||||
"type": "string"
|
||||
},
|
||||
"appDomain": {
|
||||
"description": "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.",
|
||||
"default": "ifAvailable",
|
||||
@@ -25,15 +31,20 @@
|
||||
"minimum": 0
|
||||
},
|
||||
"maxParallelThreads": {
|
||||
"description": "Configures the maximum number of threads to be used when parallelizing tests within this assembly.",
|
||||
"description": "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.",
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
"minimum": -1
|
||||
},
|
||||
"methodDisplay": {
|
||||
"description": "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.",
|
||||
"default": "classAndMethod",
|
||||
"enum": ["method", "classAndMethod"]
|
||||
},
|
||||
"methodDisplayOptions": {
|
||||
"description": "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'.",
|
||||
"default": "none",
|
||||
"type": "string"
|
||||
},
|
||||
"parallelizeAssembly": {
|
||||
"description": "Instructs the test runner that this assembly is willing to run in parallel with other assemblies.",
|
||||
"default": false,
|
||||
|
||||
Reference in New Issue
Block a user