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
1 answer
292 views

AngularJS - is there a good reason why unit testing of angularJS controller should still be written alongside with e2e tests?

Given the official tutorial of angularJS, https://docs.angularjs.org/tutorial/step_07#testing It is apparent that it only tests the controller's states (e.g. its model) when events happen (e.g. ...
Xegara's user avatar
  • 191
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
0 votes
0 answers
197 views

How to handle karma/bower in a Symfony Bundle on github?

i am working on a Symfony Bundle that uses angular among other javascript deps. Now i want to unit-test my javascript code and i want to ship those tests as well. My initial idea was to add bower....
Andresch Serj's user avatar
3 votes
2 answers
4k views

What is a good method of storing test data for development and unit testing with angularjs and jasmine?

What is a good method of storing JSON data/objects for development and unit testing with angular and jasmine? I have seen some ways of accomplishing this. However, since I am new to unit testing with ...
Chris's user avatar
  • 139