Quantcast

functional test plugin overwrites essential config files

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

functional test plugin overwrites essential config files

sebastianb
Hi,

after installing the functional testing plugin i tried to create a test with:

grails create-functional-test MyTest

following output occured:


Welcome to Grails 1.3.5 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: /var/opt/grails

Base Directory: /home/sebastian/work/...
Resolving dependencies...
Dependencies resolved in 1656ms.
Running script /home/sebastian/.grails/1.3.5/projects/portal/plugins/functional-test-1.2.7/scripts/CreateFunctionalTest.groovy
Environment set to development
     [copy] Copying 1 resource to /home/sebastian/work/myapp
    [unjar] Expanding: /home/sebastian/work/myapp/grails-shared-files.jar into /home/sebastian/work/kaufda-portal/baustelle/portal3/portal
   [delete] Deleting: /home/sebastian/work/myapp/grails-shared-files.jar
     [copy] Copying 1 resource to /home/sebastian/work/myapp
    [unjar] Expanding: /home/sebastian/work/myapp/grails-app-files.jar into /home/sebastian/work/kaufda-portal/baustelle/portal3/portal
   [delete] Deleting: /home/sebastian/work/myapp/grails-app-files.jar

By extracting grails-app-files.jar all essential config file got overriden and no test file was created in AppFolder/test/functional

The same happens with a new created grails app (using grails 1.3.5).

I am clueless

Kind regards,
Sebastian


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

    http://xircles.codehaus.org/manage_email


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

Re: functional test plugin overwrites essential config files

Mirko Weber-4
Hi,
I can confirm this problem. Anybody knows where to file a bug or where the sourcecode is hosted?

Thanks,
Mirko

2011/2/11 Sebastian Barszczewski <[hidden email]>
Hi,

after installing the functional testing plugin i tried to create a test with:

grails create-functional-test MyTest

following output occured:


Welcome to Grails 1.3.5 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: /var/opt/grails

Base Directory: /home/sebastian/work/...
Resolving dependencies...
Dependencies resolved in 1656ms.
Running script /home/sebastian/.grails/1.3.5/projects/portal/plugins/functional-test-1.2.7/scripts/CreateFunctionalTest.groovy
Environment set to development
    [copy] Copying 1 resource to /home/sebastian/work/myapp
   [unjar] Expanding: /home/sebastian/work/myapp/grails-shared-files.jar into /home/sebastian/work/kaufda-portal/baustelle/portal3/portal
  [delete] Deleting: /home/sebastian/work/myapp/grails-shared-files.jar
    [copy] Copying 1 resource to /home/sebastian/work/myapp
   [unjar] Expanding: /home/sebastian/work/myapp/grails-app-files.jar into /home/sebastian/work/kaufda-portal/baustelle/portal3/portal
  [delete] Deleting: /home/sebastian/work/myapp/grails-app-files.jar

By extracting grails-app-files.jar all essential config file got overriden and no test file was created in AppFolder/test/functional

The same happens with a new created grails app (using grails 1.3.5).

I am clueless

Kind regards,
Sebastian


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

   http://xircles.codehaus.org/manage_email



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

Re: functional test plugin overwrites essential config files

Marc Palmer Local

On 16 Mar 2011, at 11:35, Mirko Weber wrote:

> Hi,
> I can confirm this problem. Anybody knows where to file a bug or where the sourcecode is hosted?

Install the snapshot release of the plugin to get around this. 1.3-RC1

This problem occurs because the functionality/purpose of GRAILS_HOME/scripts/Init.groovy changed significantly between Grails releases (I think in the 1.2.x > 1.3.x cycle)

Marc
~ ~ ~
Marc Palmer
Freelancer (Grails/Groovy/Java)

Blog         > http://www.anyware.co.uk
Resumé       > http://www.anyware.co.uk/marc/
Twitter      > http://twitter.com/wangjammer5
Grails Rocks > http://www.grailsrocks.com









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

    http://xircles.codehaus.org/manage_email


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

Re: functional test plugin overwrites essential config files

Dean Del Ponte-2
The same problem seems to exist in with Grails-1.3.7 and plugin version 1.3-RC1 as well.
 

On Wed, Mar 16, 2011 at 10:16 AM, Marc Palmer <[hidden email]> wrote:

On 16 Mar 2011, at 11:35, Mirko Weber wrote:

> Hi,
> I can confirm this problem. Anybody knows where to file a bug or where the sourcecode is hosted?

Install the snapshot release of the plugin to get around this. 1.3-RC1

This problem occurs because the functionality/purpose of GRAILS_HOME/scripts/Init.groovy changed significantly between Grails releases (I think in the 1.2.x > 1.3.x cycle)

Marc
~ ~ ~
Marc Palmer
Freelancer (Grails/Groovy/Java)

Blog         > http://www.anyware.co.uk
Resumé       > http://www.anyware.co.uk/marc/
Twitter      > http://twitter.com/wangjammer5
Grails Rocks > http://www.grailsrocks.com









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

   http://xircles.codehaus.org/manage_email



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

Re: functional test plugin overwrites essential config files

Dean Del Ponte-2
Has anyone gotten this to work with Grails-1.3.7?

If so, how?

Thanks,

Dean Del Ponte

On Fri, Sep 30, 2011 at 10:41 AM, Dean Del Ponte <[hidden email]> wrote:
The same problem seems to exist in with Grails-1.3.7 and plugin version 1.3-RC1 as well.
 

On Wed, Mar 16, 2011 at 10:16 AM, Marc Palmer <[hidden email]> wrote:

On 16 Mar 2011, at 11:35, Mirko Weber wrote:

> Hi,
> I can confirm this problem. Anybody knows where to file a bug or where the sourcecode is hosted?

Install the snapshot release of the plugin to get around this. 1.3-RC1

This problem occurs because the functionality/purpose of GRAILS_HOME/scripts/Init.groovy changed significantly between Grails releases (I think in the 1.2.x > 1.3.x cycle)

Marc
~ ~ ~
Marc Palmer
Freelancer (Grails/Groovy/Java)

Blog         > http://www.anyware.co.uk
Resumé       > http://www.anyware.co.uk/marc/
Twitter      > http://twitter.com/wangjammer5
Grails Rocks > http://www.grailsrocks.com









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

   http://xircles.codehaus.org/manage_email




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

Re: functional test plugin overwrites essential config files

jerrydboonstra
Not here, and it's a thorn that has come up over and over for me :(

I'm instead using groovy shell scripts from the command line, which is pretty gross. 

Please excuse my brevity. Sent while on the go. 

On Oct 3, 2011, at 7:43 PM, Dean Del Ponte <[hidden email]> wrote:

Has anyone gotten this to work with Grails-1.3.7?

If so, how?

Thanks,

Dean Del Ponte

On Fri, Sep 30, 2011 at 10:41 AM, Dean Del Ponte <[hidden email]> wrote:
The same problem seems to exist in with Grails-1.3.7 and plugin version 1.3-RC1 as well.
 

On Wed, Mar 16, 2011 at 10:16 AM, Marc Palmer <[hidden email]> wrote:

On 16 Mar 2011, at 11:35, Mirko Weber wrote:

> Hi,
> I can confirm this problem. Anybody knows where to file a bug or where the sourcecode is hosted?

Install the snapshot release of the plugin to get around this. 1.3-RC1

This problem occurs because the functionality/purpose of GRAILS_HOME/scripts/Init.groovy changed significantly between Grails releases (I think in the 1.2.x > 1.3.x cycle)

Marc
~ ~ ~
Marc Palmer
Freelancer (Grails/Groovy/Java)

Blog         > http://www.anyware.co.uk
Resumé       > http://www.anyware.co.uk/marc/
Twitter      > http://twitter.com/wangjammer5
Grails Rocks > http://www.grailsrocks.com









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

   http://xircles.codehaus.org/manage_email




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

RE: functional test plugin overwrites essential config files

bksaville
In reply to this post by Dean Del Ponte-2

Probably isn’t the answer you’re looking for, but I tried the functional test plugin about 4 months ago with absolutely no success.  Uninstalled and just went without functional tests until I saw some posts about Geb + Spock.  Been diving into it and it works really well.  See especially the example application here: https://github.com/geb/geb-example-grails

 

Not sure if this is well documented (haven’t looked honestly), but grails 1.3.7 supports functional testing out of the box by just adding a test/functional folder.  Haven’t tried junit tests with it yet however, just spock and geb.

 

Hope that helps for what it’s worth.

-Brian

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

Re: functional test plugin overwrites essential config files

antony
+1 for the geb/spock solution. If you are just starting to
functionally test your application, I would definitely favour it over
the functional-test plugin.

We recently removed the functional-test plugin from our project as it
was causing us some issues too (unfortunately I can't remember what
they were), and moved our tests over to Geb.

Cheers,
Antony

On 4 October 2011 15:04, Brian Saville <[hidden email]> wrote:

> Probably isn’t the answer you’re looking for, but I tried the functional
> test plugin about 4 months ago with absolutely no success.  Uninstalled and
> just went without functional tests until I saw some posts about Geb +
> Spock.  Been diving into it and it works really well.  See especially the
> example application here: https://github.com/geb/geb-example-grails
>
>
>
> Not sure if this is well documented (haven’t looked honestly), but grails
> 1.3.7 supports functional testing out of the box by just adding a
> test/functional folder.  Haven’t tried junit tests with it yet however, just
> spock and geb.
>
>
>
> Hope that helps for what it’s worth.
>
> -Brian



--
________________________________
ꜽ . antony jones . http://www.enzy.org

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

    http://xircles.codehaus.org/manage_email


Loading...