Tests, Mocks & Contracts That Are Inferred from Service Traffic
All artifacts (Tests, Mocks & Contracts) are version controlled.
Accessing the Artifacts
Once you have UP9 installed and observing service traffic, you can download a zip file that includes all of the tests, mocks and contracts that belong to a certain model version.
[zipped folder]/ ├── tests/ ├── mocks/ └── contracts/
All artifacts come as open source with an MIT license.
tests.py file in the
tests folder, includes the complete contract test-suite and covers all endpoints that were observed in service traffic.
[zipped folder]/ ├── tests/ ├── tests.py
The readme file within the folder includes instructions on how to run your tests from your local machine. You can run all tests at once or run specific tests by using the pytest command:
To run one or more of these mocks you can follow the instructions in the new open-source project, Mockintosh.
You can access historical versions through the time machine, and open a model version from the past:
More Features To Come
There is much more that we didn’t have time to document yet. Features like smart tests that include test sequence, dependencies, data extraction, criteria and authentication support. That’s all coming very soon.