测试运行器似乎正在从输出中运行,但我编写的测试并没有运行。
这是我的gruntfile,这是我希望看到运行的测试
/*global describe, beforeEach, assert, it */
'use strict';
describe('Main View', function () {
beforeEach(function () {
this.Main = new fleetDna.Views.MainView();
});
test('should have a render() method', function () {
expect(typeof this.Main.render).to.equal('function');
});
});监视日志中的输出为>> 0 passed! (0.00s)
发布于 2014-03-03 21:18:39
也许你把测试放错地方了。你把它们放在哪个目录下了?脚本期望它们位于test/spec或其子目录中的某个位置。
更新:将--verbose添加到grunt命令中可能会提供一些额外的有用的反馈。
https://stackoverflow.com/questions/21893069
复制相似问题