mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
b2abc8b2c1
* console: fix create-table tests 1. Changed "Creating table failed" -> "Create table failed" 2. Updated cypress > plugins > index.js. It must export a function * console: fix test for insert-browse console: added a test for checking descending sort * console: fix migration inconsistency in hdb mode * console: fix tests for modify-table * console: fix permissiosn tests * console: fixed all tests * console: updated the test workflow * console: disabling video recording while testing * console: taking migrate URL from env * console: update readme, fixed typo |
||
---|---|---|
.. | ||
fixtures | ||
helpers | ||
integration | ||
plugins | ||
support | ||
.eslintrc.json | ||
README.md |
Test
Running all tests to generate coverage
- Set the
TEST_MODE
field incypress.json
tocli
- Run the command
npm run test
from theconsole
directory to run all the tests.
You can also run the complete tests from the cypress electron app:
- Set the
TEST_MODE
field incypress.json
tocli
- Run
npm run cypress
from theconsole
directory. - 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.json
and set theenv > TEST_MODE
variable toui
.{ "env": { "TEST_MODE": "ui" } }
-
Run the command
npm run cypress
and click oncreate-tabel > test.js