Testing JRE emulation?

21 views
Skip to first unread message

Sebastien Diot

unread,
Apr 9, 2014, 2:59:11 PM4/9/14
to gwt-test-u...@googlegroups.com
Hi.

I tried using the GWT test API yesterday, for the first time, and simply failed; the solutions on StackOverflow did not help. So I checked if there was any other alternatives, and came to gwt-test-utils. In less then an hour, I had a working test. :) Now my question is:

If this actually runs in Java, and not in a browser, then it can neither test JRE emulation classes (of which I have created quite a few), nor actually validate that code doing heavy math/data-manipulation is going to work in the browser (since JavaScript doesn't have real ints, ... I understand that "integer overflow" ... will behave differently in JavaScript then in Java). Is that correct? Or am I missing something?

Gael Lazzari

unread,
Apr 9, 2014, 4:31:00 PM4/9/14
to gwt-test-u...@googlegroups.com
Hi,

I'm afraid you're right, you won't be able to test neither your JRE emulation classes nor heavy math operations with gwt-test-utils :/ Since it removes any javascript to be able to run in a standalone JVM, you'll have to do it with GWTTestCase or with Selenium based high level tests to test your potential javascript hot spots..


--

---
You received this message because you are subscribed to the Google Groups "gwt-test-utils-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gwt-test-utils-u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages