dani_zone — 2013-09-29T07:19:38-04:00 — #1
Many many thanks,
mittineague — 2013-09-30T02:46:30-04:00 — #2
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
wwb_99 — 2013-09-30T10:23:55-04:00 — #3
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.
fretburner — 2013-09-30T10:48:06-04:00 — #4
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.
dani_zone — 2013-09-30T15:01:47-04:00 — #5
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?
sg707 — 2013-09-30T15:51:34-04:00 — #6
mittineague — 2013-09-30T16:02:39-04:00 — #7
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.
dani_zone — 2013-10-02T07:57:41-04:00 — #8
Any specific reason for this?
And if I am using Java for the tool how to start with everything?
system — 2013-10-03T15:38:19-04:00 — #9
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
dani_zone — 2013-10-04T07:32:51-04:00 — #10
Thanks lots for providing the above link.