Closed cjcodeproj closed 1 year ago
The validation code should be an extensible framework for running tests against the data.
Any class structure under media.data
should be testable by a separate validation class. Those classes will probably sit under media.validation
.
Ex, validating data in the class media.data.media.contents.generic.catalog.Catalog()
would be validated against a class called media.validator.media.contents.generic.catalog.Catalog()
.
Rules:
Design Notes:
The validator class will probably operate as follows:
Additional features:
Additional features/notes:
Definitions:
TestResult
is the outcome of a single test. It contains the name of the test, the max possible score, the actual score, the result code, and any fault reports (if any).Tray
is a container object that contains the media object, and a Status
object which is where all of the TestResult
objects are collected. Status
object is what will generate overall reports, and report on the overall passing or failure of the media object.Framework has been built:
Main validation tool is now media.tools.media.validate
Notes:
Operation of the validator is pretty easy, from a high-level code perspective.
Validator
object is launched and initialized.Pull request (merged).
The validation tool should work at the media level, for the purpose of checking all data.