Ejemplo n.º 1
0
def test(type, *args):
    pydotenv.load_dotenv(join(libbuild.REPO_ROOT, 'hack/config/.env'))
    if type == 'e2e':
        die(call('ginkgo -r -v -progress -trace test/e2e -- ' +
                 " ".join(args)))
    else:
        print '{test e2e}'
Ejemplo n.º 2
0
def test(type, *args):
    pydotenv.load_dotenv(join(libbuild.REPO_ROOT, 'hack/config/.env'))
    if type == 'unit':
        die(call(libbuild.GOC + ' test -v ./pkg/...'))
    elif type == 'e2e':
        die(call('ginkgo -r --v --progress --trace -- ' + " ".join(args)))
    else:
        print '{test unit|e2e}'
Ejemplo n.º 3
0
def test(type, *args):
    pydotenv.load_dotenv(join(libbuild.REPO_ROOT, 'hack/config/.env'))
    if type == 'unit':
        die(call(libbuild.GOC + ' test -v ./pkg/...'))
    elif type == 'e2e':
        st = ' '.join(args)
        die(call(libbuild.GOC + ' test -v ./test/e2e/... -args -ginkgo.v -ginkgo.progress -ginkgo.trace ' + st))
        # die(call('ginkgo ./test/e2e -r --v --progress --trace -- ' + st))
    else:
        print '{test unit|e2e}'
Ejemplo n.º 4
0
def test(type, *args):
    install()

    if os.path.exists(libbuild.REPO_ROOT + "/hack/configs/.env"):
        print 'Loading env file'
        pydotenv.load_dotenv(libbuild.REPO_ROOT + "/hack/configs/.env")

    if type == 'unit':
        unit_test(args)
    elif type == 'e2e':
        e2e_test(args)
    else:
        print '{test e2e}'
Ejemplo n.º 5
0
def test(type, *args):
    die(call(libbuild.GOC + ' install ./cmd/...'))
    pydotenv.load_dotenv(join(dirname(__file__), 'configs/.env'))
    if type == 'unit':
        unit_test()
    elif type == 'e2e':
        e2e_test(args)
    elif type == 'minikube':
        e2e_test_minikube(args)
    elif type == 'integration' or type == 'intg':
        integration(args)
    elif type == 'clean':
        e2e_test_clean()
    else:
        print '{test unit|minikube|e2e}'
Ejemplo n.º 6
0
def test(type, *args):
    die(call(libbuild.GOC + ' install ./...'))

    if os.path.exists(libbuild.REPO_ROOT + "/hack/configs/.env"):
        print 'Loading env file'
        pydotenv.load_dotenv(libbuild.REPO_ROOT + "/hack/configs/.env")

    if type == 'unit':
        unit_test(args)
    elif type == 'e2e':
        e2e_test(args)
    elif type == 'minikube':
        e2e_test_minikube(args)
    elif type == 'integration' or type == 'int':
        integration_test(args)
    else:
        print '{test unit|minikube|e2e}'
Ejemplo n.º 7
0
def test(type, *args):
    die(call(libbuild.GOC + ' install ./...'))

    if os.path.exists(libbuild.REPO_ROOT + "/hack/configs/.env"):
        print 'Loading env file'
        pydotenv.load_dotenv(libbuild.REPO_ROOT + "/hack/configs/.env")

    if type == 'unit':
        unit_test(args)
    elif type == 'e2e':
        e2e_test(args)
    elif type == 'minikube':
        e2e_test_minikube(args)
    elif type == 'integration' or type == 'int':
        integration_test(args)
    else:
        print '{test unit|minikube|e2e}'