简体   繁体   English

单元测试javascript(非节点)

[英]Unit testing javascript (NOT node)

I am scratching my head at this one, I must have missed something really obvious. 我为此抓狂,我一定错过了一些非常明显的东西。

I have a .Net ASP MVC Web app, developed with VS2015, in which I have written some library javascript code. 我有一个用VS2015开发的.Net ASP MVC Web应用程序,其中编写了一些库javascript代码。 I would like to have some simple tests for this javascript code that I can run in my dev environment, on my own machine. 我希望对此javascript代码进行一些简单的测试,以便可以在自己的开发环境中的自己的计算机上运行。 I have no IIS server locally. 我在本地没有IIS服务器。 (The server side code is fine, I use NUnit and VSs Testrunner). (服务器端代码很好,我使用NUnit和VSs Testrunner)。

I have read about Mocha (and used it back end), QUnit etc - but anything whose installation and use instructions start npm install and talks about running grunt jobs is not what I am after. 我已经读过有关Mocha(并在后端使用了它),QUnit等的信息,但是我所追求的并不是安装和使用说明从npm install开始并谈到运行grunt作业的任何内容。

Can someone point me in the right direction / educate me? 有人可以指出正确的方向/教育我吗?

If you are up for using pluralsight, it is what got me started. 如果您愿意使用复数形式,这就是我的开始。 There is a free trial and quite a few videos on testing mvc. 有一个免费试用版,以及许多有关测试mvc的视频。

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

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