Json Schema Backend Test Specification
This document speficies the testing strategy for the Json Schema backend.
1. Unit Tests (Elm)
The unit test aims to test all the
elm mapType() and the
elm mapTypeDefinition() methods defined in the Json Schema Backend
Test for each module would be defined in a file with the name pattern <ModuleName> Tests.elm. For example \ Test for BasicTypes would be defined in a file named BasicTypesTests.elm
We also need to ensure the validity of each subschema in the generated Json output.\ This tests are defined in the json-schema.test.js file. This tests are performed in tandem with the Accetance Tests
The objective of this test is to ensure that each sub-schema in the generated Json Schema validates corresponding json document instances of that schema. This tests are defined in the json-schema.test.js file.