Skip to content

Commit 3295dc2

Browse files
authored
Merge pull request loopbackio#214 from zbarbuto/update-test-readme
Update test information in readme
2 parents 17ce7b5 + f9b52fc commit 3295dc2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,7 @@ Destroying models may result in errors due to foreign key integrity. First delet
350350

351351
## Running tests
352352

353-
The tests in this repository are mainly integration tests, meaning you will need
354-
to run them using our preconfigured test server.
353+
The tests in this repository are mainly integration tests, meaning you will need to run them using our preconfigured test server.
355354

356355
1. Ask a core developer for instructions on how to set up test server
357356
credentials on your machine
@@ -378,9 +377,11 @@ In ```test\init.js```, change the value of ```config``` to be pointing to the lo
378377
};
379378
```
380379

380+
2. (`Linux Only`) `CI=true PGHOST=localhost PGPORT=<pgport> PGDATABASE=<dbname> PGUSER=<username> PGPASSWORD=<password> npm test`
381+
381382
__Troubleshooting__
382383

383-
When running npm test, it runs the ```pretest.js``` which eventually runs ```schema.sql``` to set up the database and tables.
384+
When running `npm test`, it runs the ```pretest.js``` which eventually runs ```schema.sql``` to set up the database and tables.
384385
If there is problem, you can run the ```schema.sql``` manually. To do this:
385386

386387
1. Go to SQL Shell (psql)

0 commit comments

Comments
 (0)