使用茉莉节点来testingmeteor应用程序与自动testing
我正在使用茉莉花节点来testing我的Meteor应用程序,我想使用自动testingfunction,所以我不必自己重新运行testing。
我的meteor应用程序文件夹结构是这样的:
server foo.coffee tests foo.spec.coffee
并与规范文件,我想testing位于foo.coffee的代码。 我用这个args启动jasmine-node:
jasmine-node ./ --autotest --coffee --test-dir tests
现在我假设自动testingfunction会对根文件夹中的所有更改做出反应,但是它只是对testing文件夹中的更改作出反应。 我无法在根文件夹中启动它,因为我在.meteor文件中遇到了一个错误(我不想茉莉花testing/包括meteor代码)。
所以我想要让茉莉花重新运行testing,即使我更改服务器文件夹中的代码。 我怎样才能做到这一点?
使用–watch参数和 – 自动testing,并指定包含您想要观看的任何文件的目录。