Solved

grails test-app and grails test-app integration

Posted on 2011-03-15
3
490 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This video teaches viewers about errors in exception handling.

707 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