views:

52

answers:

2

Is JSunit really a direct port of Junit to Javascript? So I have heard, but I am wondering why my company is not using it. My company has lots of smart minds, so If we are not using it I wonder if there are any major issues with Jsunit as a javascript test harness.

Input would be much appreciated.

thanks!

A: 

You mean this jsunit ? Maybe the smart guy's at your company do not even know it exists (actually, learning such things is one of the reasons I read SO). Maybe they haven't yet had the time to evaluate this for real use and deployment, or play with something else.

The tool is not the only thing that is needed to deploy a testing discipline: you need automated test replay, reporting to track deviations and progress, test methodologies, best practices. You also need documented objectives, and proper training for the teams. that is why in general companies with smart guys do not change tools every time a new tool is around, and sometime do not deploy all best practices immediately.

But in general this does not prevent individuals to deploy them for themselves, try tools, and even succeed to make the whole company evolve and use better processes, eventually building (even) better products.

tonio
yeah, very true. But would you say JSUnit is part of that testing discipline? Does it actually test javascript well?
stevebot
I prefer Jasmine's more modern features (BDD like RSpec). We've moved from JSUnit to Jasmine and it's working great for us.
Loktar
+2  A: 

JsUnit is an adaptation of JUnit for Javascript, not a direct port. It's very nice, but is showing its age and is no longer actively developed.

Check out Jasmine -- for a modern and actively supported alternative, written by the same people who wrote JsUnit.

Xian