XRPLF / clio

An XRP Ledger API Server
https://xrpl.org
ISC License
62 stars 52 forks source link

Create canonical tests #949

Open kuznetsss opened 11 months ago

kuznetsss commented 11 months ago

Canonical tests are functional tests starting application on a small test dataset, sending a set of request to the application and checking responses with canonical data. It is useful to check that application response is changed only when it is desired. Python library to create canonical tests: https://pypi.org/project/pytest-canonical-data/

kuznetsss commented 3 months ago

Reopening this as we decided it would be useful to create snapshot tests - tests with a minimal snapshot of database, real or fake rippled. Tests should have a list of requests and a list of canonical responses from Clio. Probably we will write it in go using testcontainers.