-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Is your feature request related to a problem? Please describe.
I'm currently setting up a TDD flow for cubejs. I have two questions:
- What would one test with regards to cubejs? So far on my side I think that testing the schemas for proper output seems to be a good rule of thumb.
- Is there already a mechanism integrated to cubejs for testing?
Describe the solution you'd like
Cubejs provides an npm command that allows to run test against a mock database. Doesn't require extra setup bar installing dependencies (and potentially having docker/docker-compose) installed.
Describe alternatives you've considered
I've implemented a docker-compose setup with jest for integration testing (e2e). It runs cube in its own docker environment and uses jest to fill the database, issue queries using @cubejs-frontend/core, and test the result. Now I was wondering if there would be a way for such flow to be either done without a database, or done similarly, but without the need for extra setup like I did.
Additional context
If you are interested I can share my test setup repository :)