Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8737461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:31:42+00:00 2026-06-13T10:31:42+00:00

In my grails application I use Spock and Geb to perform functional tests. Since

  • 0

In my grails application I use Spock and Geb to perform functional tests.

Since all test run on the same database, I would like to provide order in which CRUDSpec classes being executed. How this can be specified?

Example

  1. First class tests blog author creation
  2. Second class, assuming first test run successfully, tests post creation
  3. Third class adds comments to the post
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T10:31:43+00:00Added an answer on June 13, 2026 at 10:31 am

    It turned out that order can be specified as follows:

    grails -Dserver.port=8090 test-app functional: LoginCRUDSpec,PayeeCRUDSpec
    

    Another example using packages from here:

    // Run all tests in the “admin” package 
    grails test-app functional: admin.**.* 
    
    // Run all tests in the “cart” package 
    grails test-app functional: cart.**.* 
    

    The ultimate way to order tests with no-arg ‘grails test-app‘ is to name test classes alphabetically.

    T001_LoginCRUDSpec
    T002_PayeeCRUDSpec
    T003_ServiceCRUDSpec
    T004_DescrParamCRUDSpec
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my Grails application, I run some batch processes asynchronously, and would like the
I want to use a service in my Grails application. However, it is always
We have developed a Web Application using grails, groovy and oracle as database with
I have a grails application that attempts to use OpenID4Java to authenticate with our
I wanted to use MongoDB in my Grails application and also Spring Security. I
I am working on grails application. I must use H2 for development and Oracle
I'm writing unit tests for my grails application, and I realized I don't really
I have grails application on heroku. I use MongoSessionManager which allows, to share session
I have created grails application and uploaded it in heroku. If I use 'heroku
I'm trying to use a submitToRemote button for webflow in my grails application. I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.