Testing javascript

Post on 02-Jul-2015

422 views 0 download

description

Writing maintainable code is usually a difficult task. One of possible ways to do so is to start unit testing your code. If you are at least able to test your code then you might be on the right path. During discussion speaker will share his knowledge about code design improvements while writing unit test, what kind of changes should you make in order to start writing test for your code, how unit tests help to maintain the code and why is it worth doing at all.

transcript

● What is unit testing?● Approaches● Why is it needed?● Downside of unit testing● Testing reasons● How do we do testing?

● Unit○

● Testing○

● What is unit testing?● Approaches● Why is it needed?● Downside of unit testing● Testing reasons● How do we do testing?

Test Driven Development (TDD)Code CoverageTest Driven Bug Fixing

● What is unit testing?● Approaches● Why is it needed?● Downside of unit testing● Testing reasons● How do we do testing?

● Code design (When doing TDD)○

● Maintainability○

● Provides documentation○

● Allows to “share” development (with less fear)○

● What is unit testing?● Approaches● Why is it needed?● Downside of unit testing● Testing reasons● How do we do testing?

● Increased development time● Maintain and fix unit tests● Increased development costs● Steep learning curve

What else?..

● What is unit testing?● Approaches● Why is it needed?● Downside of unit testing● Testing reasons● How do we do testing?

● If code has to do something…○

● If it is difficult to understand how it works…○

● If I allow others to modify my code base…○

● If I find a bug…○

● If I want to have better code quality…○

● What is unit testing?● Approaches● Why is it needed?● Downside of unit testing● Testing reasons● How do we do testing?

...to add some test