Archive for October 14th, 2007
test first development, does it run fast on ruby on rails or java environment?
i have been practicing test first development (from TDD) approach for last 1.5 years. i wrote a lot of junit test cases and wrote a lot of jmock based mock objects. it was amazing work with it these tools. specially jmock was fantastics and my most favorite mocking tool.
anyway, while i seriously started ruby on rails it is about 2/3 months ago, when i formed my own rails team and started working on first commercial rails project.
at the beginning i was working on IntelliJ IDEA 6M2 on windows environment, where i found running runit test cases are taking longer than we suppose to expect. it was really annoying.
good luck i got my mac book pro where i set up all rails stuff with IntelliJ IDEA 6M2. now i could see a lot more significant difference. now i am really feeling my test environment for rails project over this environment is running more than i expected. it really leads me to belief test driven approach over rails environment is really fast.
it must be some platform related significant changes, which only the expert on that platform can assure me.
by the way, i am really loving intelliJ IDEA and rails over my mac environment.
setup maven on mac
indeed nothing is special, but this post is about to remind me about the steps i followed to get my mac box with maven and jdk 1.5.
my requirements -
1. maven – 2.0.7
2. jdk 1.5
3. set maven bin to PATH variable.
i had 10.4.10 osx version.
to configure jdk 1.5 (jdk 1.4 is set as default jdk):
cd /System/Library/Frameworks/JavaVM.framework/Versions
sudo rm CurrentJDK
sudo ln -s 1.5 CurrentJDK
to configure maven:
download maven binaries, copy it in your preferred location.
in my case i had it in – /Applications/java/maven-2.0.7/bin/ here.
execute following line -
vi ~/.bash_profile
change PATH with following value -
PATH=/usr/local/bin:/Applications/java/maven-2.0.7/bin/:$PATH
test your configuration -
java -version
it should say – java version “1.5.0_0x”
mvn -version
it should say – Maven version: 2.0.7
thats all will make your maven and jdk 1.5 environment up and running.




