chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
# Node Client Integration Tests
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install
|
||||
```
|
||||
|
||||
## Run node tests
|
||||
|
||||
To run the node tests, you must make sure you have Doltgres installed on your computer and
|
||||
have run `npm install`. Then update your Doltgres config by running:
|
||||
|
||||
```shell
|
||||
sh ../postgres-client-tests-entrypoint.sh
|
||||
```
|
||||
|
||||
And then you can run the tests using the `run-tests.sh` script, which sets up the database, runs the SQL server, runs the provided `.js` test file against the running server, and then tears down the database.
|
||||
|
||||
For example, you can run the `workbench.js` tests by running:
|
||||
|
||||
```shell
|
||||
sh run-tests.sh workbench.js
|
||||
```
|
||||
|
||||
## Workbench stability tests
|
||||
|
||||
The tests in `workbenchTests` were written to enforce the stability of the [SQL
|
||||
workbench](https://github.com/dolthub/dolt-workbench). The workbench uses many Doltgres
|
||||
system tables, functions, and procedures, and any changes to these interfaces can break
|
||||
the workbench. @tbantle22 will be tagged in any GitHub PR that updates those files to
|
||||
ensure appropriate workbench updates are made for Doltgres changes that break these
|
||||
queries.
|
||||
Reference in New Issue
Block a user