Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xUnit Schema now links to external site #2421

Merged
merged 2 commits into from
Aug 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/api/json/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -3144,13 +3144,13 @@
},
{
"name": "xunit.runner.json",
"description": "xUnit.net runner configuration file",
"description": "Configuration file for unit test projects using xUnit.net",
"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"
"v2.2": "https://xunit.net/schema/v2.2/xunit.runner.schema.json",
"v2.3": "https://xunit.net/schema/v2.3/xunit.runner.schema.json",
"v2.4": "https://xunit.net/schema/current/xunit.runner.schema.json"
}
},
{
Expand Down
5 changes: 4 additions & 1 deletion src/schema-validation.json
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,10 @@
"---> below this line are the 'empty' schemas that should not be validated and also redirect to an external schema via a single $ref. <---",
"block.json",
"theme-v1.json",
"markdownlint.json"
"markdownlint.json",
"xunit-2.2.json",
"xunit-2.3.json",
"xunit.runner.schema.json"
],
"tv4ExternalRef": {
"http://json-schema.org/draft-04/schema#": "schema-draft-v4.json",
Expand Down
54 changes: 2 additions & 52 deletions src/schemas/json/xunit-2.2.json
Original file line number Diff line number Diff line change
@@ -1,55 +1,5 @@
{
"$ref": "https://xunit.net/schema/v2.2/xunit.runner.schema.json",
"$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"
"title": "xUnit.net Runner Configuration"
}
59 changes: 2 additions & 57 deletions src/schemas/json/xunit-2.3.json
Original file line number Diff line number Diff line change
@@ -1,60 +1,5 @@
{
"$ref": "https://xunit.net/schema/v2.3/xunit.runner.schema.json",
"$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"
"title": "xUnit.net Runner Configuration"
}
70 changes: 2 additions & 68 deletions src/schemas/json/xunit.runner.schema.json
Original file line number Diff line number Diff line change
@@ -1,71 +1,5 @@
{
"$comment": "This schema was last updated for v2.4.1",
"$ref": "https://xunit.net/schema/current/xunit.runner.schema.json",
"$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/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",
"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. 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
},
"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,
"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"
"title": "xUnit.net Runner Configuration"
}