简体   繁体   English

组件测试angular2-meteor

[英]Component Test angular2-meteor

I use angular-meteor to create a web app, but I try to write some test functions to test the app. 我使用angular-meteor来创建一个Web应用程序,但我尝试编写一些测试函数来测试应用程序。 When I use the command meteor test --driver-package practicalmeteor:mocha , it doesn't run any test files, 0 failures. 当我使用命令meteor test --driver-package practicalmeteor:mocha ,它不会运行任何测试文件,0次失败。

测试结果

Does anybody know how to set it up and test both client? 有人知道如何设置它并测试两个客户端吗?

First the files should be named *.test[s].[js|ts]. 首先,文件名为* .test [s]。[js | ts]。 Secondly the files should not be placed in a folder named /tests, since these files are not automaticly picked up. 其次,文件不应放在名为/ tests的文件夹中,因为这些文件不会自动拾取。

See https://guide.meteor.com/testing.html for more. 有关更多信息,请访问https://guide.meteor.com/testing.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM