Automatically run unit-tests when saving in Eclipse

Following on from Automatically run unit-tests when compiling in Visual Studio 2008, I was delighted to discover that the Eclipse alternative is even better.

In Eclipse, simply install a plugin called Infinitest, from the official download site. Also, ensure ProjectBuild automatically is checked.

Now, whenever you save, it will run the relevant tests. This is much quicker than having to run all the tests (although you should do that every now and then to be safe!!). Secondly, test errors appear as build errors, and you get a nice red or green result in the status bar, so the UI is perfect. Finally, Eclipse just seems to run tests vastly quicker than VS 2008.

Advertisements

Whoops!

Ok, so, following on from my last post, I put Natty on a USB stick and ran it. It didn’t have wireless (I’ve got some crappy Broadcom driver that needs loads of configuring), it’s still using Gnome (presumably because I haven’t enabled Nvidia’s properietary drivers?) and I thought the sound was broken, although it turned out that it was just muted by default.

So, why am I angry? Oh, only because Natty changed the Windows bootloader to Grub, and now it’s booting into Ubuntu 10.04. FFS! Luckily I remembered my username and password.

Now, I’d sort of been meaning to change back to Grub anyway, so I can dual-boot, but being lazy I’d not got round to it. Maybe this is a sign…

Several hours of fucking about with Grub configurations later, I finally realised that I’d changed the boot order of my 2 hard-drives when I was telling my PC to boot from USB. One quick trip to the BIOS later, and everything is hunky-dory. Sorry Ubuntu – it was all my fault 😦

Is the Narwhal Natty enough?

I’m currently installing Ubuntu 11.04 beta (Natty Narwhal) on VMWare player, and I thought I’d note down my initial impressions. The first test for Natty is that it has to install and be configured in under an hour, as that is when my baby will wake up. Popping in to replace a dummy I noticed a rather grotesque smell, so when that time comes there will be no opportunity to play with Linux.

The biggest change in Natty is the new Unity interface, which replaces the default Gnome interface. I’m particularly interested in this, as I never liked Gnome. The default settings were ugly and confusing. I liked KDE as it was sexy and different, and I’m hoping Unity will be that, but easier to use. I don’t have the time these days to spend hours tweaking my system, so it has to be good out of the box.

The install has just finished – took about 10 minutes from an ISO image. Pretty good! VMWare Tools took another 5 minutes or so, but that’s not really Natty’s fault.

First impressions – err… where’s my desktop?

Wait a minute…That’s Gnome! A quick Google search later reveals the answer. Unity is a modern desktop so it expects a 3D graphics card. VMWare player does not do 3D acceleration. Ipso facto – no Unity. Doesn’t explain why my Gnome desktop is blank, but, as I previously said, I don’t have time to spend monkeying about with Linux.

EDIT: Apparently the above is actually wrong. Unity will drop down to a 2D version if 3D acceleration is not enabled. I think the screenshot actually is Unity. No idea why it had no menus or anything though.

Ok, let’s see if I can get it on a thumb drive and installed before the baby wakes up…