Solved

grails test-app and grails test-app integration

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
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…
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…
This video teaches viewers about errors in exception handling.

820 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