Many many thanks,
Hi Dani_zone, welcome to the forums
Most Unit tests I've seen are written in the language they're testing. eg.
Ruby in Ruby
PHP in PHP
Python in Python
There are more and more js testing frameworks coming out. I would check out http://www.manning.com/resig/ for some ideas as to how to approach it from the guy who created jquery. I haven't had enough seat time with any of the frameworks to know which one to use.
What I have had some seat time with is using selenium to build integration tests -- it can fire up browsers and hit your QA sites and run the full-blown site with scripts there so you can get end to end tests. You can hook into that using your server-side language of choice through a few means, check out http://docs.seleniumhq.org/ for details. But that certainly isn't a unit test though half the time when people ask for unit tests they are really asking for automated testing frameworks.
Resig developed a unit testing framework for JS which is now called [QUnit. [URL="http://pivotal.github.io/jasmine/"]Jasmine](http://qunitjs.com/) seems to be very popular in the JS community at the moment - it's more for BDD than unit testing, so it really depends what you prefer.
Hi Mittineague.. could you please elaborate a little more in last part where you mentioned that I will be using
so you mean Java would be fine if I would be using this language to develop the tool? Any problem I would be facing in future according to you?
I may have been wrong in my assumptions. I was unaware of any application being able to automate browsers. Going by the reply made by wwb_99
selenium to build integration tests -- it can fire up browsers and hit your QA sites and run the full-blown site with scripts there
If it can work with
it sounds very promising.
Any specific reason for this?
And if I am using Java for the tool how to start with everything?
Why use JS for JS testing? Simply because unit testing in a language should not require you to learn another language.
There are a number of unit testing tools for JS written in JS, the few mentioned above and YUI Test and Mocha being note worthy.
But if you were following recent JS trends, lately there's some news going on about BrowserSworm: http://www.browserswarm.com
Thanks lots for providing the above link.
This topic is now closed. New replies are no longer allowed.