配置 jasmine 不随机运行测试 [英] configure jasmine to not run tests randomly

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

问题描述

我刚刚升级到 jasmine 3.3,现在我的测试默认以随机顺序运行.有没有办法在升级到这个新版本之前配置 karma 和 jasmine 以使测试像以前一样运行?

解决方案

在客户端下的 Karma 配置中:您应该能够设置 jasmine:{random:false} 但这对我不起作用.适合你吗?请参阅以下来自文档和屏幕截图的链接.

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?

解决方案

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

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆