Phase 6: Add testing improvements to training schema and stages
- Add integration_tests field to validation section - Add coverage_target field for test coverage percentage - Add coverage_report field for coverage reporting - Add mock_data section with wallets, addresses, transactions - Add integration test example to stage1_foundation.json - Add coverage target and report to stage1_foundation.json - Add mock data example to stage1_foundation.json
This commit is contained in:
@@ -327,6 +327,20 @@
|
||||
"weight": 1
|
||||
}
|
||||
],
|
||||
"integration_tests": [
|
||||
{
|
||||
"name": "end_to_end_wallet_flow",
|
||||
"operations": ["wallet_create", "wallet_fund", "wallet_send"],
|
||||
"cleanup": true
|
||||
}
|
||||
],
|
||||
"coverage_target": 80,
|
||||
"coverage_report": true,
|
||||
"passing_score": 80
|
||||
},
|
||||
"mock_data": {
|
||||
"wallets": ["test-wallet-1", "test-wallet-2"],
|
||||
"addresses": ["0x1234567890abcdef", "0x0987654321fedcba"],
|
||||
"transactions": ["tx_1", "tx_2"]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -222,6 +222,39 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"integration_tests": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "Integration test name"
|
||||
},
|
||||
"operations": {
|
||||
"type": "array",
|
||||
"items": {"type": "string"},
|
||||
"description": "Operations to execute in sequence"
|
||||
},
|
||||
"cleanup": {
|
||||
"type": "boolean",
|
||||
"description": "Whether to cleanup after test",
|
||||
"default": true
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"coverage_target": {
|
||||
"type": "number",
|
||||
"description": "Target test coverage percentage",
|
||||
"minimum": 0,
|
||||
"maximum": 100
|
||||
},
|
||||
"coverage_report": {
|
||||
"type": "boolean",
|
||||
"description": "Whether to generate coverage report",
|
||||
"default": false
|
||||
},
|
||||
"passing_score": {
|
||||
"type": "number",
|
||||
"description": "Minimum score percentage to pass",
|
||||
@@ -230,6 +263,27 @@
|
||||
"default": 80
|
||||
}
|
||||
}
|
||||
},
|
||||
"mock_data": {
|
||||
"type": "object",
|
||||
"description": "Mock data for testing",
|
||||
"properties": {
|
||||
"wallets": {
|
||||
"type": "array",
|
||||
"items": {"type": "string"},
|
||||
"description": "Mock wallet names"
|
||||
},
|
||||
"addresses": {
|
||||
"type": "array",
|
||||
"items": {"type": "string"},
|
||||
"description": "Mock wallet addresses"
|
||||
},
|
||||
"transactions": {
|
||||
"type": "array",
|
||||
"items": {"type": "string"},
|
||||
"description": "Mock transaction IDs"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user