Finding Information in the Javascript Testing System

Hey. Can anyone fill me in on JavaScript testing?

Now I am working on a project, and when the JS (Mostly jQuery) libraries grow, it becomes more difficult to introduce changes or refactoring, because I can not guarantee the accuracy of the code without manually testing everything.

I really don't know anything about JavaScript Testing Frameworks or how they integrate / work in a .Net project, so I thought I'd ask here.

What is a good testing framework for .Net? What does a JavaScript test look like? (for example, using NUnit, I have the [TestFixture] and [Test] classes in the ProjectTests assembly) How to run a javascript test? What are the conceptual differences between JS testing and C # testing? Is there anything else worth knowing?

thank

Dave

+3
source share
3 answers

As with jQuery testing (and overall Javascript testing), you can take a look at QUINT , the jQuerys testing suite. You just include a couple of javascript files and a CSS stylesheet, write your testers in one document (or, if you want to include them), and open the document. The test framework customizes the page and allows you to run the test.

As for the implementation with C # and .Net, I can not help you.

+3
source

There are already many questions (and answers) about this topic when overflowing the stack:

+3

You should at least know jsUnit .

+1
source

Source: https://habr.com/ru/post/1736775/


All Articles