Skip to main content

All Questions

Tagged with
2 votes
1 answer
270 views

Unit testing a Web Worker in JavaScript/TypeScript - Best Practice

I got assigned with writing unit tests for a class that instantiate a Worker inside in it's constructor. The code looks simmilar to this, class SomeClass { private _worker: Worker; constructor(...
LNTR's user avatar
  • 43
0 votes
0 answers
202 views

How to make my E2E tests verify results of an action?

I'm working on a project with an AngularJS app that talks to a RESTful API. We've just started writing E2E tests for the app in Protractor. I'm fairly comfortable with unit testing but new to end-to-...
Yoshi Walsh's user avatar
1 vote
4 answers
1k views

How and where to test if the JSON request objects generated by the front-end is valid

We have built a complex Angular application that sends multiple HTTP request to a REST service that is also built in house. Since both the frontend and the backend is being developed in parallel, ...
nipuna-g's user avatar
  • 111
3 votes
1 answer
274 views

Testing async code: are long sleeps acceptable?

I am testing some AngularJS code using Selenium. Angular updates the DOM in unpredictable order, sometimes completely async (via setTimeout), so it is difficult to know when the DOM has been ...
billc.cn's user avatar
  • 630
7 votes
1 answer
4k views

Should front-end integration tests make HTTP requests?

I am developing a single-page web application using AngularJS. Data for this application is consumed over a REST API which is well tested in its own right. The Angular application has a bunch of unit ...
James Allardice's user avatar