Skip to content

Commit c28c5e4

Browse files
docs: add test run command
1 parent 5fbfe14 commit c28c5e4

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@ Build the project to get the executable
107107
go build -o build/ .
108108
```
109109
110+
Run Tests for the project
111+
112+
```
113+
go test ./controllers
114+
```
115+
110116
Run the project directly without `build`
111117
112118
```

runner.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,7 @@ now=$(date '+%d/%m/%Y %H:%M:%S')
77
go build -o build/ .
88
echo "$now [*] Build completed"
99

10+
go test ./...
11+
1012
./build/skeduler || sudo kill -9 $(sudo lsof -t -i:8080) || echo "[x] SERVER INITIALISATION FAILED"
1113
echo "[*] Server closed successfully"

0 commit comments

Comments
 (0)