forked from eduncan911/mspec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
50 lines (43 loc) · 1.11 KB
/
Taskfile.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
test-assert:
desc: Run assert tests.
cmds:
- echo "Calling tests assert execution ..."
- go test {{.REPO_PATH}}/internal/assert -v --cover
silent: true
test-examples:
desc: Run examples tests.
cmds:
- echo "Calling tests examples execution ..."
- go test {{.REPO_PATH}}/examples -v --cover
silent: true
test-test:
desc: Run test tests.
cmds:
- echo "Calling tests test execution ..."
- go test {{.REPO_PATH}}/test -v --cover
silent: true
test-bdd:
desc: Run mongo tests.
cmds:
- echo "Calling bdd test execution ..."
- go test {{.REPO_PATH}} -v --cover
silent: true
test-bdd-update:
desc: Run mongo tests.
cmds:
- echo "Calling bdd test execution ..."
- go test {{.REPO_PATH}} -v --cover -update
silent: true
cover:
desc: Check cover of all unit tests.
cmds:
- echo "Checking coverage for all unit tests ..."
- goverage ./...
- go tool cover -html=coverage.out
test:
deps: [test-assert, test-examples, test-test, test-bdd]
desc: Run all tests.
format:
cmds:
- echo "Formatting all files on the project ..."
- gofmt -e -s -w .