Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个问题,如果你能回答我会很高兴。根据任何情况,如何使用 getgauge(java) 使所有规范都失败?
您可以使用BeforeSpec钩子使所有规范失败。您可以抛出异常或在BeforeSpec钩子中添加断言失败,这将导致规范失败。
BeforeSpec