09 February 2012

Using git-svn (and vim) for 6.005

Hey everyone,

I figured that some of you might want to bypass eclipse and using a mouse and use something more user friendly, say, vim. Here's a basic outline of getting it to work on Mac/Linux:

- Install git-svn. Mac users, you'll probably want to get it from macports.
- cd to the dir in which you want the projects to be and run

git svn clone https://svn.csail.mit.edu/6.005/sp12/users/$USER/ps0

replacing $USER with your athena handle (if your username is not the same as the same as your athena handle) and ps0 with the problem set you want

- run through the git-svn prompts. to sanity check: at some point, it should ask for your svn password.

You should be good to go!

As for JUnit tests, you need to first set the $CLASSPATH (preferably in your bashrc),

export CLASSPATH=$JUNIT_HOME/junit.jar:/myproject/classes:/myproject/lib/something.jar

get the JUnit jar(s), and then run

java org.junit.runner.JUnitCore <test class name>

Hope this helps!

Sources: http://junit.sourceforge.net/doc/faq/faq.htm#running_1

No comments:

Post a Comment