执行失败,并出现验收测试错误

问题描述 投票:0回答:0

我正在尝试执行验收测试(AAT),但是当我尝试使用 ginkgo 命令或 make aat 时,它会失败并出现以下错误:

lisha@admin-bld-box:/work/lisha/gemini/middleware/aat/topology-middleware$ ginkgo
Failed to compile topology-middleware:

go: unknown flag -i cannot be used with -c
usage: go test [build/test flags] [packages] [build/test flags & test binary flags]
Run 'go help test' and 'go help testflag' for details.

Ginkgo ran 1 suite in 36.754007ms
Test Suite Failed
lisha@admin-bld-box:/work/lisha/gemini/middleware/aat/topology-middleware$ ^C

在 makefile 中,我的 ginko 命令指定如下

GINKGO_SKIP  ?= SLOW
GINKGO_FLAGS ?= --progress --trace --v --slowSpecThreshold=15 --focus="$(GINKGO_FOCUS)" --skip="$(GINKGO_SKIP)"

请帮我找到根本原因

我尝试通过 go test -v ./ 执行它,它有效,但是我想知道错误中“go:未知标志 -i 不能与 -c 一起使用”这一行的根本原因

go acceptance-testing ginkgo
© www.soinside.com 2019 - 2024. All rights reserved.