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.
我知道跳过测试套件的方法是:
让 init_per_suite 函数返回 {skip, reason} 值。但它会在跳过之前执行 init_per_suite 函数中的所有命令。
我想在满足条件时立即跳过测试套件。
也许只是在早期测试条件init_per_suite并中止:
init_per_suite
init_per_suite(Config) -> case abort_condition_met() of true -> {skip,abort_condition_met}; false -> %% run functions Config end.
或者,您可以在 start 的命令中省略 testsuite common_test。例如,如果您运行common_testusing ct_run,请创建一个符合您要求的配置。
common_test
ct_run