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 8438337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T07:41:10+00:00 2026-06-10T07:41:10+00:00

I am getting the following error when including in Mixin Build in unit tests:

  • 0

I am getting the following error when including in Mixin Build in unit tests:

TestDataConfig.groovy not found, build-test-data plugin proceeding without config file

it works like charm in the integration tests but not part of unit tests. I mean, ‘build’ plugin works itself in unit test but the ‘TestDataConfig’ is not populating default values

Thank You

  • 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-10T07:41:11+00:00Added an answer on June 10, 2026 at 7:41 am

    First you should verify the version from build-test-data in your BuildConfig.groovy

    test “:build-test-data:2.0.3”

    Second, check your test. If you want build objects you need:

    import grails.buildtestdata.mixin.Build
    ...
    @TestFor(TestingClass)
    @Build([TestingClass, SupportClass, AnotherClass])
    class TestingClassTest{
        @Test
        void testMethod{
            def tc1 = TestingClass.build()
            def sc1 = SuportClass.build()
            def ac1 = AnotherClass.build()
        }
    }
    

    Third, check the domains constraints, you could have some properties validations like unique that fails when you build two instances. You need set that properties in code:

    def tc1 = TestingClass.build(uniqueProperty: 'unique')
    def tc2 = TestingClass.build(uniqueProperty: 'special')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am getting following error while getting data from dictionary -[__NSCFString objectForKey:]: unrecognized selector
For some reason I keep getting error C3861: '__typeof': identifier not found when I
I've inherited some aspx (including the web.config file) and am getting the following error.
I'm getting the following error when including static libraries: missing required architecture i386 in
Am getting following error message on calling WCF service: The formatter threw an exception
I am Getting following error on exporting the video using [exportSession exportAsynchronouslyWithCompletionHandler:^ Error: -[TiBlob
I am getting following error while installing the application on my device. before running
I'm getting following error when I try to log onto phpMyAdmin. User * *
I am getting following error when I am trying to get WebResponse using WebResponse
I am getting following error message when using Doctrine ORM in Codeigniter. ( !

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.