Running tests

danlucraft edited this page Dec 28, 2011 · 2 revisions

First, follow the "Installing from source for development" instructions in Installation.

Specs

To run all specs:

$ rspec plugins/*/spec/

Features

On OSX:

$ JRUBY_OPTS="-J-XstartOnFirstThread" jruby -S bundle exec swt_cucumber -renv.rb plugins/*/features

On Linux:

$ jruby -S bundle exec swt_cucumber -renv.rb plugins/*/features

Problems

If the tests complain about missing keyboard layouts, you can try running with the -J-Dorg.eclipse.swtbot.keyboard.layout=MAC_EN_US option in JRUBY_OPTS. The tests use a small subset of the keyboard, so depending how close your keyboard layout is to US, this may well work.