Skip to content

Commit 7a2cd47

Browse files
committed
Updated docs
1 parent cfec6f1 commit 7a2cd47

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
node_modules
1+
node_modules
2+
videos

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "",
55
"main": "index.js",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
7+
"test": "cypress open --e2e --browser=chrome",
8+
"test:run": "cypress run"
89
},
910
"keywords": [],
1011
"author": "",

readme.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Cypress Postgres Demo
2+
3+
This is my Demo project where you can try out how to connect Cypress with a Postgres Database.
4+
5+
Inside the project I also included a DockerFile and a Docker Compose file
6+
7+
If you want to run the Database just run the command:
8+
9+
```bash
10+
docker compose up
11+
```
12+
13+
This will start the Postgres on your localhost:5432 and the example cypress test will connect to it.
14+
15+
To start testing just run npm test or npm run test:run for headless mode.
16+

0 commit comments

Comments
 (0)