未验证 提交 6f13cdb8 编写于 作者: P Phodal Huang

fix: fix build & windows slash issues

上级 c14cd3bf
......@@ -10,7 +10,7 @@ BINARY_LINUX=$(BINARY_DIR)/$(PACKAGE_NAME)_linux
BINARY_MACOS=$(BINARY_DIR)/$(PACKAGE_NAME)_macos
BINARY_WINDOWS=$(BINARY_DIR)/$(PACKAGE_NAME)_windows.exe
all: clean bughunt build
all: clean build
build: build-linux build-windows build-macos
test:
$(GOTEST) -v ./...
......
......@@ -17,7 +17,7 @@ func TestTbsApp_EmptyTest(t *testing.T) {
result := buildTbsResult(codePath)
g.Expect(result[0].FileName).To(Equal("../../../_fixtures/tbs/code/EmptyTest.java"))
g.Expect(result[0].FileName).To(Equal(filepath.FromSlash("../../../_fixtures/tbs/code/EmptyTest.java")))
g.Expect(result[0].Line).To(Equal(8))
g.Expect(result[0].Type).To(Equal("EmptyTest"))
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册