Java Virtal Machine.net

[ News ] rss

February 01, 2011

Mark Wielaard: New GPG key. Finally created a new GPG key using gnupg. The old one was a DSA/1024 bits one and 8 years old. The new one is a RSA/2048 bits one. I will use the new one in the future to sign any release tarballs I might create. pub 2048R/57816A6A 2011-01-29 Key f...

More »

February 01, 2011

Andrew Hughes: [SECURITY] IcedTea6 1.7.8, 1.8.5, 1.9.5 Released!. We are pleased to announce a new set of security releases, IcedTea6 1.7.8, IcedTea6 1.8.5 and IcedTea6 1.9.5. This update contains the following security updates: The IcedTea project provides a harness to build the source code from OpenJDK6 u...

More »

December/2024
SunMonTueWedThuFriSat
1234567
891011121314
15161718192021
2223 2425262728
293031    

[ Archives News
for 'Developers' ]

home > news > developers > run tests - without focus loss!

Run Tests - Without Focus Loss!

I like unit tests - but running them can be painful. Commit-validation tests which bring up UI are obviously annoying, but even simple unit tests that get in the way. Does this look familiar? The above menubar should look familiar to anyone on a Mac who's run unit tests for client side Java code. Not necessarily GUI tests, just any test where GUI libraries are loaded. For every testcase, the test runner fires up a new process, which tells OSX that "I'm graphical, give me focus!", and this steals the focus from the user. The test finishes quickly thereafter, the process quits - and then the test runner goes to the next test and the whole cycle starts over. This is really painful because I like to have lots of tests. The Python editor support for Netbeans had 600+ tests; the counts for the JavaScript support was higher, and the Ruby support even higher than that. Whenever I run tests, I basically have to fight with my computer to get focus. Forget trying to write anything - every second or so my keystrokes get stolen as the next test grabs focus - so I've gotten in the habit of using the time for browsing, since I'm mostly reading, and I can handle clicking a link a second time if the first click got lost. But every now and then somebody will ping me on instant messaging - and it's maddening trying to respond while this is going on. If this is sounding painfully familiar to you, I have good news. I've finally figured out a...


Date: May, 15 2009
Url: http://blogs.sun.com/tor/entry/run_tests_without_focus_loss


Others News

©2002-2019Java-Virtual-Machine.net https://mobirise.com/ | website generator | easy website builder software | bootstrap modal popup | css menu maker