mirror of
https://github.com/zhigang1992/graphql-engine.git
synced 2026-04-28 12:05:00 +08:00
This changes TableCoreCacheT to internally record dependencies at a per-table level. In practice, this dramatically improves the performance of building permissions: it makes it far, far less likely for permissions to be needlessly rebuilt because some unrelated table changed.
Test
Running all tests to generate coverage
- Set the
TEST_MODEfield incypress.jsontocli - Run the command
npm run testfrom theconsoledirectory to run all the tests.
You can also run the complete tests from the cypress electron app:
- Set the
TEST_MODEfield incypress.jsontocli - Run
npm run cypressfrom theconsoledirectory. - Click on
test_complete.js
Running tests individually
Tests are modularized into following modules:
- API-Explorer
- Data
- Migration Mode
- Create Table
- Insert Browse
- Modify Table
- Table Relationships
- Table and View Permissions
- Views
To run the tests for the modules individually (say for create table),
- Go to the
cypress.jsonand set theenv > TEST_MODEvariable toui.
{
"env": {
"TEST_MODE": "ui"
}
}
- Run the command
npm run cypressand click oncreate-table > test.js