Solved

grails test-app and grails test-app integration

Posted on 2011-03-15
3
466 Views
Last Modified: 2012-05-11
My integration test passes when I execute grails test-app integration; however, it failswhen I run test-app without specifying integration.  Why would this be?  Shouldn't it pass either way the tests are executed?
0
Comment
Question by:melodi_roberts
  • 3
3 Comments
 

Author Comment

by:melodi_roberts
ID: 35140259
I found that 0 tests are beign executed when I use the test-app integration command, while 3 are executed when I use the test-app command without 'integration' specified.  Why would this be? If there are subdirectories underneath the test/integration directory, do Ineed to add further specifications here?

Also, when the tests are successful, and configuration is definitely set to update and not drop-create, shouldn't I be able to check and see the data saved to the database?  (test scripts from grailsinaction are attached) PostIntegrationTests.groovy.txt
0
 

Author Comment

by:melodi_roberts
ID: 35140537
I found that if I specify the subdirectories and file name, it works just fine ; however, i still don't see the data in the database.  Probalby I'm just missing reading somethign somewhere about integration tests not keeping the data...??
e.g. grails test-app integration com.grailsinaction.PostIntegration
0
 

Accepted Solution

by:
melodi_roberts earned 0 total points
ID: 35140550
:) Just found this.  
"Grails will use an in-memory HSQLDB database for integration tests and clear out all the data from the database in between each test."
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now