最佳答案
我一直在找这个,找到了“相似”的答案,但不是我想要的。
现在,如果我想测试一个单一的文件与业力,我需要做的 fit()
,fdescribe()
文件的问题..。
然而,我真正想要的是能够通过配置文件调用 karma,并将其指向一个特定的文件,所以我根本不需要修改该文件,即:
karma run --conf karma.conf.js --file /path/to/specific/test_file.js
有没有可能做到这一点? 或与任何帮助者? (使用咕哝或吞咽?)