简体   繁体   English

在 NodeJS 网站中查找错误

[英]Finding Bugs In NodeJS Website

I'm coming to the end of the development of my project and am wanting to finalise it by finding any remaining bugs, the problem is I don't want to manually run through my website over and over.我的项目开发即将结束,我想通过查找任何剩余的错误来完成它,问题是我不想一遍又一遍地手动浏览我的网站。 I was wondering if its possible to build a script to run through the website over and over and stop whenever it hits a problem.我想知道是否有可能构建一个脚本来一遍又一遍地浏览网站并在遇到问题时停止。

Is there any kind of application which could do this?有没有可以做到这一点的应用程序? I want to test my login script, and signup script on my website.我想在我的网站上测试我的登录脚本和注册脚本。

My website is written in:我的网站是这样写的:

NodeJS Javascript HTML Mongoose NodeJS Javascript HTML Mongoose

You can use mocha test for this.您可以为此使用 mocha 测试。 https://mochajs.org/ https://mochajs.org/

You can use Selenium or CasperJS (with PhantomJS) to test your application through UI.您可以使用SeleniumCasperJS (与 PhantomJS)通过 UI 测试您的应用程序。 Or you can use mocha (Atul answer) for unit tests.或者您可以使用 mocha (Atul answer) 进行单元测试。

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

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