test_suite_validator
Class in charge of validating a TestSuite.
TestSuiteValidator
Helper class to validate a test suite.
Source code in mlte/validation/test_suite_validator.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | |
evidence = {}
instance-attribute
Where evidence will be gathered for validation.
test_suite = test_suite
instance-attribute
The test suite to be validated.
__init__(test_suite=None, test_suite_id='')
Initialize a TestSuiteValidator instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
test_suite
|
Optional[TestSuite]
|
The test suite to be validated |
None
|
Source code in mlte/validation/test_suite_validator.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | |
add_evidence(evidence)
Adds Evidence associated to a test case.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
evidence
|
Evidence
|
The evidence to add to the internal list. |
required |
Source code in mlte/validation/test_suite_validator.py
55 56 57 58 59 60 61 62 63 64 65 66 67 68 | |
add_evidence_list(evidence_list)
Adds multiple evidence values.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
evidence_list
|
list[Evidence]
|
The list of evidence to add to the internal list. |
required |
Source code in mlte/validation/test_suite_validator.py
46 47 48 49 50 51 52 53 | |
load_and_validate()
Loads all Evidence for the model/context and store in session, and validates.
Source code in mlte/validation/test_suite_validator.py
70 71 72 73 | |
validate()
Validates the internal Evidence given its validators, and generates a TestResults from it.
Returns:
| Type | Description |
|---|---|
TestResults
|
The results of the test validation. |
Source code in mlte/validation/test_suite_validator.py
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | |