06 Jun '13, 1pm

Find out a bunch of cool tutorials on #rubymine by @pivotallabs: Extremely recommended!

RubyMine is great for launching focused rspec tests, but is a little trickier for launching Jasmine specs, but we have had it working on my current project using a shell script and RubyMine external tools . The script relies on using sed to parse the first line of your spec file, so this actually only runs the describe block at the top of your file. The steps for our setup below. Create a shell script somewhere in your project: #!/bin/sh JASMINE_URL="http://localhost:8888/?spec=" if [ -z "$1" ]; then echo "Opening $JASMINE_URL to run all the tests" open "$JASMINE_URL" exit 0 fi # is this a spec file? echo $1 | grep 'spec.js$' if [ $? -eq 0 ]; then # ends with 'spec.js', probably a spec file SPECFILE=$1 echo "Detected $SPECFILE as matching spec for $1" else echo "Could not locate a spec file to go with $1" >&2 exit 1 fi DESCRIBE_LINE=$(grep describe $SPECFILE | head -n1) if...

Full article: http://pivotallabs.com/tag/rubymine/

Tweets

Lockdown your unique Pivotal Tracker username now

pivotallabs.com 05 Jun '13, 5pm

Dan Podsedly manages Pivotal Tracker, Pivotal Labs’ award winning project management and collaboration software. Dan has b...