Linked Questions
36 questions linked to/from JavaScript unit test tools for TDD
4 votes
1 answer
11k views
Testing JavaScript code from the command line [duplicate]
As a total novice with JavaScript, I'm struggling to understand how to "load" my code so I can test it using unit tests outside of the application. In PHP, I have an autoloader (composer) so I can ...
1 vote
0 answers
461 views
Best unit test framework for Angularjs app [duplicate]
I need to start unit testing for my angularjs app, I am a bit confused with, which is best framework out of Protractor or Jasmine. Majorly I need to test controller functions, services, dependency ...
105 votes
4 answers
38k views
Can Protractor and Karma be used together?
If Protractor is replacing Angular Scenario Runner for E2E testing, does that mean I will still be able to use it with Karma as my E2E testing framework ?
62 votes
14 answers
27k views
Automated unit testing with JavaScript
I'm trying to incorporate some JavaScript unit testing into my automated build process. Currently JSUnit works well with JUnit, but it seems to be abandonware and lacks good support for Ajax, ...
49 votes
14 answers
9k views
How to run unit-tests in all browsers?
I've never used Selenium but I guess it's for simulating user interaction in all browsers. That's like integration tests. But how do you test your js libraries/frameworks (unit testing) on all the ...
122 votes
1 answer
58k views
Should I be using Protractor or Karma for my end-to-end testing? [closed]
Should I be using Protractor or Karma for my end-to-end testing? Angular-seed is using Protractor/Selenium WebDriver for E2E but the angular-phonecat tutorial uses karma. I read that I should use ...
88 votes
2 answers
43k views
How to test nodejs backend code with Karma (testacular)
How do I setup Karma to run my backend unit tests (written with Mocha)? If I add my backend test script to the files = [], it fails stating that require is undefined.
14 votes
6 answers
10k views
Selenium: Is there any JS (JavaScript) code coverage tool which we can integrate with Selenium Server/RC
Selenium: Is there any JS (JavaScript) code coverage tool which we can integrate with Selenium Server/RC Hi, I want to JS code coverage done by my Selenium Test Suite Is there any code coverage ...
5 votes
3 answers
7k views
Javascript unit testing in eclipse
I am doing a firefox extension using eclipse and need to know how I can do unit testing for that project.
3 votes
5 answers
6k views
How to get java script console ouput of browser in java?
I want to run one HTML page with JavaScript and want to access its output in Java. Is there any way to access JavaScript console output of browser in Java code? First, I tried executing JavaScript ...
5 votes
2 answers
11k views
Javascript: testing ajax requests
I am currently working on a heavy client side web app that handles a considerable amount of ajax calls. I usually check to see if they calls work properly with the chrome plugin Postman, but at this ...
5 votes
5 answers
743 views
General unit testing concepts/practices in JavaScript against different browsers?
I’ve been writing unit tests in strongly typed languages and I have a fair good understanding about it. When writing unit tests in JavaScript to verify if certain functions are working properly in ...
3 votes
1 answer
3k views
Slickgrid - how to get the value of edited cells?
I'd like to make my code be able to update database table immediately when the cell is changed. However, I can get the value of the changed cell whereas not the data of those of next cell. Methods I ...
7 votes
3 answers
2k views
Is there an equivalent to webmock for testing client side code
Is there an equivalent to webmock or vcr for client side code? ... Or is it possible to use webmock with client side code already?
3 votes
3 answers
2k views
JavaScript unit testing tools for Visual Studio / Build Server - any consensus yet?
Here's the situation: We're a Microsoft shop using Visual Studio / TFS etc. We have a build server that nightly performs builds for us and runs various tests to ensure nothing has been broken during ...