I am doing a firefox extension using eclipse and need to know how I can do unit testing for that project.
JavaScript Unit Testing is a method where JavaScript test code is written for a web page or web application module. It is then combined with HTML as an inline event handler and executed in the browser to test if all functionalities are working as desired. These unit tests are then organized in the test suite.
As the name suggests, Test Runner is a tool that is used to run or execute tests and export results. It is a library that selects the source code directory and picks the test files to run them for verifying bugs and errors.
I think you can use Jasmine Framework for that.
I've been using JSTestDriver, http://code.google.com/p/js-test-driver, and it is an excellent framework. Lightning fast testing, test on save, and other cool features.
Initial setup is a bit complicated, but it's certainly worth it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With