First cut Integration Test using REST-Assured. Also modifed .gitignore for Mac.

This commit is contained in:
sailee
2013-03-22 14:58:19 +05:30
parent 345d4e2811
commit c9223cd485
3 changed files with 2601 additions and 1 deletions
+1
View File
@@ -17,3 +17,4 @@ repos
*.iws
rebel.xml
*.sublime-workspace
*.DS_Store
+20 -1
View File
@@ -160,7 +160,8 @@ dependencies {
testCompile 'junit:junit:4.10',
'org.mockito:mockito-all:1.9.0',
'org.hamcrest:hamcrest-all:1.1'
'org.hamcrest:hamcrest-all:1.1',
'com.jayway.restassured:rest-assured:1.7.2'
}
@@ -210,6 +211,24 @@ tomcatRunWar {
configFile = file('src/test/resources/META-INF/context.xml')
}
sourceSets {
integrationTest {
}
}
configurations {
integrationTestCompile.extendsFrom testCompile
integrationTestRuntime.extendsFrom testRuntime
}
task integrationTest(type:Test){
description = "Run integration tests (located in src/integrationTest/java). Requires server to be running."
testClassesDir = project.sourceSets.integrationTest.output.classesDir
classpath = project.sourceSets.integrationTest.runtimeClasspath
}
/*
* Support publication of artifacts versioned by topic branch.
* CI builds supply `-P BRANCH_NAME=<TOPIC>` to gradle at build time.
File diff suppressed because it is too large Load Diff