现在项目中同时存在 cucumber 和一般 ut.都用的话会有重复工作和重复测试,想尽量用 scenario 代替业务的 ut, 但是觉得系统调用异常等一些 case 不应该体现在 scenario 上. 现在不知怎么划分哪些需要 ut 哪些需要用 cucumber,求教.
现在项目中同时存在 cucumber 和一般 ut.都用的话会有重复工作和重复测试,想尽量用 scenario 代替业务的 ut, 但是觉得系统调用异常等一些 case 不应该体现在 scenario 上. 现在不知怎么划分哪些需要 ut 哪些需要用 cucumber,求教.