I’m developing a custom app that will automate certain processes, such as:
- Generating a Sales Order whenever a Web Order (custom DocType) is created.
- Create Work Order if Sales Order status is changed to “Processing”
Since a Sales Order requires essential data like Item, Customer, and Company, I need to determine the best approach for storing test information. Should these records be generated dynamically using Faker within a CI/CD workflow when the site initializes, or is it better to import a database dump for testing purposes?
Additionally, should the site data be reset before each test run? I’m trying to understand best practices, so I have something maintainable.