running tests in real browser / share test code with jsunit

2 views
Skip to first unread message

Fredrik Wendt

unread,
Feb 8, 2008, 8:02:38 AM2/8/08
to crosscheck
Hi. This is my first post and this piece of software is really
neat. :)

I'd like to know if somebody has info to share regarding running the
unit tests in a real browser. I need to cover Safari, IE6&7, Gecko/
Mozilla-based and AOL. To run all tests in all browsers while
developing will be very time consuming (even with dedicated machines
performing distributed remote testing) and instead we'll probably
focus on running crosscheck alongside eclipse/mvn and let some CI
enginge (JsUnit, Hudson) run full tests on all target platforms.

The issue I need to solve, as I see it now (not quite finished
experimenting), is to make crosscheck and JsUnit use the same
javascript tests. Crosscheck likes clean javascript files (.jst) while
JsUnit likes html, and declaring the suites are done differently.

Is this true or have I missed something?

Thanks in advance,

Fredrik Wendt

Charles Lowell

unread,
Feb 8, 2008, 8:50:08 AM2/8/08
to cross...@googlegroups.com

Fredrik,

I'm not sure how easy this will be since there are subtle differences between jsunit and crosscheck tests. I'm not sure the assertXX methods all have the same signatures, and in crosscheck the ways you interact with the host to do things like send key events and shift focus are just not availabel in jsUnit. 

Assuming you could probably do some sort of mapping between the two sets of functions (and that's a big if), then you could probably just include the shared test files inside <script></script> tags in jsUnit, and with a crosscheck.load() call in crosscheck.

cheers


Charles Lowell
The Frontside Software


Reply all
Reply to author
Forward
0 new messages