[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

grails test-app and grails test-app integration

Posted on 2011-03-15
3
Medium Priority
?
495 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

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
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…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses

650 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