mirror of
https://github.com/portainer/portainer.git
synced 2025-07-21 22:39:41 +02:00
chore(ci): run lint and test on all pkgs [EE-6201] (#10481)
This commit is contained in:
parent
2e15cad048
commit
82951093b5
13 changed files with 35 additions and 66 deletions
|
@ -1,22 +0,0 @@
|
|||
package testhelpers
|
||||
|
||||
import (
|
||||
"flag"
|
||||
"os"
|
||||
"testing"
|
||||
)
|
||||
|
||||
var integration bool
|
||||
|
||||
func init() {
|
||||
flag.BoolVar(&integration, "integration", false, "enable integration tests")
|
||||
}
|
||||
|
||||
// IntegrationTest marks the current test as an integration test
|
||||
func IntegrationTest(t *testing.T) {
|
||||
_, enabled := os.LookupEnv("INTEGRATION_TEST")
|
||||
|
||||
if !(integration || enabled) {
|
||||
t.Skip("Skipping integration test")
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue