Quantcast

Scaffold Controller Tests Failing

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Scaffold Controller Tests Failing

johnrellis
Hey,

I am using Grails 2.0.3 and I have a controller that is simply :

class InstitutionController {
  static scaffold = true
}

However when I run my tests, I am seeing failures for testIndex, testList etc.  Is there something else I need to do???

John

--
John Rellis

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Scaffold Controller Tests Failing

johnrellis
Ugh, sorry, my IDEA was not showing the file for InstitutionControllerTests so I assumed it was only generated at run time.

I have a question though, the docs say there's "A unit test is now generated for scaffolded controllers".  So should the tests work even if there's no source code, just the scaffolded code?  Just curious as to what the docs mean.

On Wed, May 9, 2012 at 1:07 PM, John Rellis <[hidden email]> wrote:
Hey,

I am using Grails 2.0.3 and I have a controller that is simply :

class InstitutionController {
  static scaffold = true
}

However when I run my tests, I am seeing failures for testIndex, testList etc.  Is there something else I need to do???

John

--
John Rellis




--
John Rellis

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Scaffold Controller Tests Failing

johnrellis
I should probably clarify this.  I think this was my environment screwing up.  Sorry to bother! :)

On Wed, May 9, 2012 at 1:38 PM, John Rellis <[hidden email]> wrote:
Ugh, sorry, my IDEA was not showing the file for InstitutionControllerTests so I assumed it was only generated at run time.

I have a question though, the docs say there's "A unit test is now generated for scaffolded controllers".  So should the tests work even if there's no source code, just the scaffolded code?  Just curious as to what the docs mean.

On Wed, May 9, 2012 at 1:07 PM, John Rellis <[hidden email]> wrote:
Hey,

I am using Grails 2.0.3 and I have a controller that is simply :

class InstitutionController {
  static scaffold = true
}

However when I run my tests, I am seeing failures for testIndex, testList etc.  Is there something else I need to do???

John

--
John Rellis




--
John Rellis




--
John Rellis

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Scaffold Controller Tests Failing

Graeme Rocher-4
Administrator
In reply to this post by johnrellis
tests are only generated when running 'generate-all'

Cheers

On Wed, May 9, 2012 at 2:38 PM, John Rellis <[hidden email]> wrote:

> Ugh, sorry, my IDEA was not showing the file for InstitutionControllerTests
> so I assumed it was only generated at run time.
>
> I have a question though, the docs say there's "A unit test is now generated
> for scaffolded controllers".  So should the tests work even if there's no
> source code, just the scaffolded code?  Just curious as to what the docs
> mean.
>
> On Wed, May 9, 2012 at 1:07 PM, John Rellis <[hidden email]> wrote:
>>
>> Hey,
>>
>> I am using Grails 2.0.3 and I have a controller that is simply :
>>
>> class InstitutionController {
>>   static scaffold = true
>> }
>>
>> However when I run my tests, I am seeing failures for testIndex, testList
>> etc.  Is there something else I need to do???
>>
>> John
>>
>> --
>> John Rellis
>>
>
>
>
> --
> John Rellis
>



--
Graeme Rocher
Grails Project Lead
SpringSource - A Division of VMware
http://www.springsource.com

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Loading...