github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/acceptance/testdata/node/README.md (about) 1 # Node Acceptance Test 2 3 This test runs the `pg` driver against Cockroach. 4 If it detects it's running in an acceptance test it will run against the 5 assigned env vars, otherwise it will run against a locally running Cockroach 6 (`localhost:26257`) to allow quicker feedback cycles. 7 8 ## To run tests locally: 9 10 * Run a Cockroach instance on the default port 11 * `yarn && yarn test` 12 13 ## To add a dependency 14 15 We don't want to install the deps on every CI run, so to add a dependency to 16 this test, you must: 17 18 * Add it to the `package.json` so that anyone running the tests locally will be 19 able to install it. 20 * Rebuild the cockroach-acceptance container (see [../Dockerfile]), which will 21 automatically bake in the new dependency. 22 23 [../Dockerfile]: ../Dockerfile