v1.0.0: test: add first test
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
6aa8360920
commit
0eb8c1d907
2 changed files with 21 additions and 0 deletions
9
cmd/001_basic_test.go
Normal file
9
cmd/001_basic_test.go
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
package main_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestBasic(t *testing.T) {
|
||||
skipCI(t, "TestBasic")
|
||||
}
|
||||
12
cmd/skipCi_test.go
Normal file
12
cmd/skipCi_test.go
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
package main_test
|
||||
|
||||
import (
|
||||
"os"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func skipCI(t *testing.T, test string) {
|
||||
if os.Getenv(test) != "" {
|
||||
t.Skipf("Skipping testing %v\n", test)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue