RandoriAS/randori-compiler — pull request #192 by jeffxpx (2013-10-07 05:12:42+00:00)
Title: Got tests working on Windows and down to only 4-5 failures

I got the tests running on my end and down to 4 failures. I had to change a few files around, but it's working for me.

Someone a bit more knowledgeable with the framework will need to fix the rest.

My changes are up at https://github.com/jeffxpx/randori-compiler.

Here's how to get up and testing:

1. You will need to install Gradle (http://www.gradle.org/) and Maven (http://maven.apache.org/), which isn't that hard. Make sure gradle\bin is in your PATH environment variable. I also set up a GRADLE_HOME env variable, but I'm not sure if that's necessary.
2. Clone the following git repositories to the same parent directory. You'll probably want to make sure the develop branch is checked out. Some of them default to master.
* randori-compiler
* randori-framework
* randori-guice-framework
* randori-sdk (yes, the binaries are needed for the tests)
3. Look for a file called TestConstants_Template and rename that to TestConstants and change the class name to TestConstants and follow the instructions in there. I simplified it dramatically and added a nice message as to what to use. It's in src/test/java/randori/compiler/internal/constants.
4. Call "gradle test" from that directory on the command line. It should compile and run the tests. Key word is *should*.

The ant build also requires the flex-falcon repository and for you to change build/project.properties to match the flex-falcon/compiler directory, but compiler.jar is in lib/ and the gradle tasks apparently just use that.

I also want to say that I tried the gradle wrapper (gradlew.bat) and it did not work for me. It complained about not being able to find GradleWrapperMain. I'm not a gradle aficionado by any stretch of the imagination. I just got the tests to (mostly) work.