Go 如何为测试添加测试标签?
我想用相关的测试用例ID标记每个测试“when”块。有什么方法可以实现它吗Go 如何为测试添加测试标签?,go,automation,ginkgo,Go,Automation,Ginkgo,我想用相关的测试用例ID标记每个测试“when”块。有什么方法可以实现它吗 Describe("Shopping cart", func() { When("initially", func() { // Need to add test_tag here It("has 0 items", func() {}) }) })
Describe("Shopping cart", func() {
When("initially", func() { // Need to add test_tag here
It("has 0 items", func() {})
})
})