从测试内部读取标签


🌐 Reading tags from inside a test

TestContext 对象通过 context.tags 将测试的标签作为冻结数组公开,因此测试可以根据自己的元数据进行分支。

🌐 The TestContext object exposes the test's tags as a frozen array through context.tags, so tests can branch on their own metadata.