I'm a completely newbie Scala programmer, and I have no previous experience with Java; I come from ruby. I'm trying to run my first TDD sample program. I'm planning something very small, with maybe 5 or 6 tests. I'm trying to use the specs2 lib. I have no IDE, I usually program with vim and execute stuff from the command line.
How do I work with scala & specs2 on my little .scala file from the command line?
In the Quick Start they mention this:
scala -cp ... specs2.run HelloWorldSpec
- I don't have any idea what that elipsis (
...
) is standing for. What do I have to put there? - That command references (I assume) a file called
specs2.run
. But on the downloads section I only get a .jar file. Where isspecs2.run
? - In the dependencies section I'm given between two technologies - sbt and maven (I googled for them, didn't know them before). Do I have to use sbt/maven no matter what? Can't I just use a console command? It's only 1 file with 5 tests.
- I'm aware that there is a sample app, but again it comes with no instructions on how to run it. I think it comes prepared to work with sbt and maven. I would rather not have to learn to use any of those just to make a quick test. Is it possible?
Thanks a lot.