-
Learn Go with tests:
-
About go modules and start a GO aplication
Now, we can run the tests separately, as described into makeflile:
-
to run unitary tests:
- run all:
make unitCheck
- to run a specific test file, example:
make unitCheck testfile=./context/v3/
- to run a specific test name, example:
make unitCheck testfile=./context/v3/ testname=TestServer
- if you want to run these tests with a race flag, put -race=race, example:
make unitCheck testfile=./context/v3/ testname=TestServer -race=race
- run all:
-
to run integration tests:
- run all:
make integrationCheck
- to run a specific test file, example:
make integrationCheck testfile=./context/v3/
- to run a specific test name, example:
make integrationCheck testfile=./context/v3/ testname=TestServer
- run all: