Posts

06 June / Jens Grassel / Software

To write unit tests for your javascript code you can use a testing framework like JSTestDriver which is able to run under TeamCity.

Usage and configuration instructions for JSTestDriver are available on their website. For integration with TeamCity you’ll have to write an ant build file. But to be able to run browsers on your build agent machine you’ll have to use Xvfb. The test task in your ant file should look like the one below:

05 June / Jens Grassel / Software
04 June / Jens Grassel / Software

Sometimes you’ll want to remove all ruby gems from your system. This is very easy (at least under unix like operating systems). Just issue the following command:

03 June / Jens Grassel / Software
02 June / Jens Grassel / Software

The zsh contains a very usefull extension called zmv. You can load it via autoload -U zmv. The man page is located under zshcontrib. A very usefull flag is -n which does not execute the command but prints the command that would be executed. Use this if you are unsure about your patterns.