mirror of https://github.com/01-edu/public.git
xpetit
4 years ago
3 changed files with 48 additions and 13 deletions
@ -0,0 +1,29 @@ |
|||||||
|
# Tests |
||||||
|
|
||||||
|
To run the tests make sure the two repositories are right next to each other: |
||||||
|
|
||||||
|
- github.com/01-edu/piscine-go |
||||||
|
- github.com/01-edu/public |
||||||
|
|
||||||
|
To test a program, run this command in this folder (`public/go/tests`): |
||||||
|
|
||||||
|
``` |
||||||
|
go run github.com/01-edu/public/go/tests/func/EXERCISE_test |
||||||
|
``` |
||||||
|
|
||||||
|
and a program: |
||||||
|
|
||||||
|
``` |
||||||
|
go run github.com/01-edu/public/go/tests/prog/EXERCISE_test |
||||||
|
``` |
||||||
|
|
||||||
|
Relative paths works anywhere within `public/go/tests`: |
||||||
|
|
||||||
|
``` |
||||||
|
go run ./prog/printalphabet_test |
||||||
|
cd prog |
||||||
|
go run ./printalphabet_test |
||||||
|
go run ../func/isnegative_test/ |
||||||
|
``` |
||||||
|
|
||||||
|
No output means success. |
Loading…
Reference in new issue