Javascript Unit Framework

I am looking for a javascript unittesing framework and trying to decide if I should go with JSunit or not. My goal is to run unittests with my CI, possibly using a JSunit server that runs without heads.

From people's experience, is this a good idea? Is there any better framework you would recommend for my purposes over JSunit?

+3
source share
3 answers

QUnit worth considering

+3
source

. DOM- , , JSUnit. , . xUnit.

+2

JS Unit Test, JS Unit, , Selenium. env.js HTMLUnit, JS.

Personally, I'm not losing my mind. A headless browser is often the โ€œperfectโ€ browser and may not catch all of these browser features. Therefore, I ultimately run my browser tests through the browser using Selenium. I use a can of Sauce Labs.

For other testing structures presented on Wikipedia , the Screw Block looks good if you like BDD.

+1
source

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


All Articles