Solved

grails test-app and grails test-app integration

Posted on 2011-03-15
3
467 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
groupSum6 challenge 6 76
unix in java example 9 52
Spring Framework HTTPSession management 1 21
fibonacci ten numbers 4 22
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

948 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

18 Experts available now in Live!

Get 1:1 Help Now