本文介绍了将茉莉花配置为不随机运行测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚升级到茉莉花3.3,现在我的测试默认以随机顺序运行.有没有一种方法可以配置业力和茉莉花,使其测试在升级到此新版本之前像以前一样运行?

i just upgraded to jasmine 3.3 and now my tests by default run in random order. Is there a way to configure karma and jasmine to make tests run like they used to before upgrading to this new version?

推荐答案

在客户端下的Karma配置中:您应该能够设置茉莉花:{random:false},但这对我不起作用.它适合您吗?请参阅以下来自文档和屏幕截图的链接. https://github.com/karma-runner/karma-jasmine

In Karma config under client: you are supposed to be able to set jasmine:{random:false} but that does not work for me. Does it for you?See below link from docs and screen cap.https://github.com/karma-runner/karma-jasmine

这篇关于将茉莉花配置为不随机运行测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-21 07:28