Files
metabuilder/schemas/package-schemas/examples/tests-examples/basic-params.json
johndoe6345789 2d5cba276a Add edge case test parameters and schemas for comprehensive testing
- Introduced `edge-cases.params.json` to define parameter sets for various edge case scenarios including null handling, boundary values, empty collections, special characters, numeric overflow, concurrent access, and malformed data.
- Created `edge-cases.test.json` to implement parameterized tests for the defined edge cases, ensuring robust validation of edge case handling in the application.
- Added `test-parameters_schema.json` to establish a schema for defining parameterized test input parameters, enhancing validation and structure.
- Developed `tests_schema.json` to define the structure for parameterized unit tests, including setup, teardown, and test case definitions.
2026-01-02 13:20:14 +00:00

84 lines
2.1 KiB
JSON

{
"$schema": "https://metabuilder.dev/schemas/test-parameters.schema.json",
"schemaVersion": "2.0.0",
"package": "test-examples",
"description": "Basic test parameter examples",
"parameters": [
{
"id": "addition-test-params",
"name": "Addition Test Parameters",
"description": "Simple addition test cases",
"tags": ["math", "basic"],
"params": {
"a": {
"type": "number",
"description": "First number"
},
"b": {
"type": "number",
"description": "Second number"
},
"expected": {
"type": "number",
"description": "Expected sum"
}
}
},
{
"id": "string-validation-params",
"name": "String Validation Parameters",
"description": "String format validation test cases",
"tags": ["validation", "strings"],
"params": {
"input": {
"type": "string",
"description": "String to validate"
},
"format": {
"type": "string",
"description": "Expected format",
"enum": ["email", "phone", "url", "uuid"]
},
"shouldBeValid": {
"type": "boolean",
"description": "Whether string should be valid for format"
}
}
},
{
"id": "edge-case-params",
"name": "Edge Case Parameters",
"description": "Common edge cases for testing",
"tags": ["edge-cases", "boundaries"],
"params": {
"value": {
"type": "any",
"description": "Value to test",
"nullable": true
},
"testType": {
"type": "string",
"description": "Type of edge case",
"enum": [
"null",
"undefined",
"empty-string",
"empty-array",
"empty-object",
"zero",
"negative",
"max-int",
"min-int"
]
},
"expectedBehavior": {
"type": "string",
"description": "Expected behavior",
"enum": ["accept", "reject", "throw"]
}
}
}
]
}