1.2 KiB
1.2 KiB
Technical notes
SMW\Tests │ ├─ JsonTestCaseScriptRunner │ └─ LightweightJsonTestCaseScriptRunner │ └─ ExtendedJsonTestCaseScriptRunner ├─ \Integration │ └─ \JSONScript │ └─ JsonTestCaseScriptRunnerTest └─ \Utils └─ \JSONScript └─ ...
- The
JSONis internally transformed into a correspondingPHPUnitdataset with the help of theJsonTestCaseContentHandlerandJsonTestCaseScriptRunner. - A test file (e.g "myTest.json") will be loaded from the specified location in
JsonTestCaseScriptRunner::getTestCaseLocationand is automatically run during thePHPUnittest execution. - The
readmeContentsBuilder.phpcan be used to update the list of available test cases including its descriptions.
Script runners
JsonTestCaseScriptRunneris the base runner that provides all methods necessary to run test cases, it also includes version checks as well as to validate custom defined dependenciesLightweightJsonTestCaseScriptRunnerallows to use theparser,parser-html,special, andsemantic-datatype assertionsExtendedJsonTestCaseScriptRunnerprovides additional assertion methods