2017-05-30 66 views

回答

0

也許只是測試條件init_per_suite早期並中止:

init_per_suite(Config) -> 
    case abort_condition_met() of 
     true -> 
      {skip,abort_condition_met}; 
     false -> 
      %% run functions 
      Config 
    end. 

或者你可以在命令中省略的測試套件開始common_test。例如,如果您使用ct_run運行common_test,請創建一個符合您要求的配置。