Skip to content

Testing? #129

@philippefutureboy

Description

@philippefutureboy

Is your feature request related to a problem? Please describe.
I'm currently setting up a TDD flow for cubejs. I have two questions:

  1. 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.
  2. 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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementLEGACY. Use the Feature issue type instead

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions