For Mac:
- Clone the project repository using git.
- Install HomeBrew
- Run "brew install gradle"
- Run "gradle createDatabase" to create readerfeeder database
- Run "gradle createChangelogTable" to enable auto-migration
- Run "gradle updateDatabase" to load schemas and data for database
- Run "gradle build" to run all tests and build a WAR.
- Run "gradle jettyRun" to deploy using jetty.
For linux:
- Clone the project repository using git.
- Run "yum install gradle"
- Run "gradle createDatabase" to create readerfeeder database
- Run "gradle createChangelogTable" to enable auto-migration
- Run "gradle updateDatabase" to load schemas and data for database
- Run "gradle build" to run all tests and build a WAR.
- Run "gradle jettyRun" to deploy using jetty.
- Run "gradle idea" to create the project files
- Open the twu_29_Books.ipr file
Please do "gradle build" before COMMITTING to the git repository. If the build failed, please DO NOT push your code to the repository as it can break the build in the CI server.
If you don't install jasmine, use "gem install jasmine"
rake jasmine: start jasmine server
visit the link given by server to run all jasmine test
If you like to run all the functional or integration tests from a single test class:
Assume you want to run all the tests from SearchBookFunctionalTest, you can use this command: gradle functionaltest -Pfile=SearchBookFunctionalTest
Assume you want to run all the tests from BookMapperTest, you can use this command: gradle integrationtest -Pfile=SearchBookFunctionalTest