Linked Questions

4 votes
1 answer
11k views

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 ...
Richard A Quadling's user avatar
1 vote
0 answers
461 views

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 ...
robieee's user avatar
  • 354
105 votes
4 answers
38k views

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 ?
holographic-principle's user avatar
62 votes
14 answers
27k views

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, ...
Chris MacDonald's user avatar
49 votes
14 answers
9k views

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 ...
ajsie's user avatar
  • 80.1k
122 votes
1 answer
58k views

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 ...
screenm0nkey's user avatar
  • 18.9k
88 votes
2 answers
43k views

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.
Sylvain's user avatar
  • 19.3k
14 votes
6 answers
10k views

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 ...
Abhinav Garg's user avatar
  • 1,692
5 votes
3 answers
7k views

I am doing a firefox extension using eclipse and need to know how I can do unit testing for that project.
Sanjeewani's user avatar
3 votes
5 answers
6k views

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 ...
Pradeep's user avatar
  • 6,653
5 votes
2 answers
11k views

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 ...
user avatar
5 votes
5 answers
743 views

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 ...
Jeff's user avatar
  • 13.2k
3 votes
1 answer
3k views

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 ...
James's user avatar
  • 315
7 votes
3 answers
2k views

Is there an equivalent to webmock or vcr for client side code? ... Or is it possible to use webmock with client side code already?
Christian Schlensker's user avatar
3 votes
3 answers
2k views

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 ...
John Reilly's user avatar
  • 6,399

15 30 50 per page