spock geb and maven build errors - test packages not seen

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

spock geb and maven build errors - test packages not seen

Christopher Smith
Team,

I am trying to enable geb and spock tests in a spring mvc sample project via eclipse.

I can run a spring mvc project with spock by itself - built with maven.

I can also run a spring mvc project with geb by itself - built with maven.

I would like to have (1) one project that allows both tests.

I am not a maven expert.  

The error that I get is that the groovy compiler cannot see the page objects.

I think this has to do with some pom.xml configuration.

Thanks for any help


Error statements
---------------------------------


D:\development\workspace\spockMVCTest\src\test\groovy\AppSpec.groovy: 5 Groovy:unable to resolve class apps.CategoryPage
D:\development\workspace\spockMVCTest\src\test\groovy\CheckOutSpec.groovy: 7 Groovy:unable to resolve class apps.ShoppingCartPage
D:\development\workspace\spockMVCTest\src\test\groovy\CheckOutSpec.groovy: 5 Groovy:unable to resolve class apps.CategoryPage
D:\development\workspace\spockMVCTest\src\test\groovy\CheckOutSpec.groovy: 6 Groovy:unable to resolve class apps.CheckOutPage

--
You received this message because you are subscribed to the Google Groups "Spock Framework - User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/spockframework.
For more options, visit https://groups.google.com/d/optout.

pom.xml (12K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: spock geb and maven build errors - test packages not seen

rfletcher
It would help to know where the page objects are. Are they in src/test/groovy?

On Wednesday, March 25, 2015 at 11:27:09 AM UTC-7, Christopher Smith wrote:
Team,

I am trying to enable geb and spock tests in a spring mvc sample project via eclipse.

I can run a spring mvc project with spock by itself - built with maven.

I can also run a spring mvc project with geb by itself - built with maven.

I would like to have (1) one project that allows both tests.

I am not a maven expert.  

The error that I get is that the groovy compiler cannot see the page objects.

I think this has to do with some pom.xml configuration.

Thanks for any help


Error statements
---------------------------------


D:\development\workspace\spockMVCTest\src\test\groovy\AppSpec.groovy: 5 Groovy:unable to resolve class apps.CategoryPage
D:\development\workspace\spockMVCTest\src\test\groovy\CheckOutSpec.groovy: 7 Groovy:unable to resolve class apps.ShoppingCartPage
D:\development\workspace\spockMVCTest\src\test\groovy\CheckOutSpec.groovy: 5 Groovy:unable to resolve class apps.CategoryPage
D:\development\workspace\spockMVCTest\src\test\groovy\CheckOutSpec.groovy: 6 Groovy:unable to resolve class apps.CheckOutPage

--
You received this message because you are subscribed to the Google Groups "Spock Framework - User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/spockframework.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: spock geb and maven build errors - test packages not seen

Christopher Smith
Team,

The directory structure is 


/src/test/groovy

/src/test/pages

/src/test/resources

I changed the maven <testSourceDirectory/> element to "src/test" and everything worked.

On Wed, Mar 25, 2015 at 3:20 PM, <[hidden email]> wrote:
It would help to know where the page objects are. Are they in src/test/groovy?


On Wednesday, March 25, 2015 at 11:27:09 AM UTC-7, Christopher Smith wrote:
Team,

I am trying to enable geb and spock tests in a spring mvc sample project via eclipse.

I can run a spring mvc project with spock by itself - built with maven.

I can also run a spring mvc project with geb by itself - built with maven.

I would like to have (1) one project that allows both tests.

I am not a maven expert.  

The error that I get is that the groovy compiler cannot see the page objects.

I think this has to do with some pom.xml configuration.

Thanks for any help


Error statements
---------------------------------


D:\development\workspace\spockMVCTest\src\test\groovy\AppSpec.groovy: 5 Groovy:unable to resolve class apps.CategoryPage
D:\development\workspace\spockMVCTest\src\test\groovy\CheckOutSpec.groovy: 7 Groovy:unable to resolve class apps.ShoppingCartPage
D:\development\workspace\spockMVCTest\src\test\groovy\CheckOutSpec.groovy: 5 Groovy:unable to resolve class apps.CategoryPage
D:\development\workspace\spockMVCTest\src\test\groovy\CheckOutSpec.groovy: 6 Groovy:unable to resolve class apps.CheckOutPage

--
You received this message because you are subscribed to the Google Groups "Spock Framework - User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/spockframework.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Spock Framework - User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/spockframework.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: spock geb and maven build errors - test packages not seen

Christopher Smith
However, I do have a dumb question,

is the gmaven-plugin still required in the pom.xml file.  It seems to be discontinued. and there is a reference to use groovy-eclipse-compiler.


Is this build file dated?

Thanks

On Wed, Mar 25, 2015 at 3:56 PM, Christopher Smith <[hidden email]> wrote:
Team,

The directory structure is 


/src/test/groovy

/src/test/pages

/src/test/resources

I changed the maven <testSourceDirectory/> element to "src/test" and everything worked.

On Wed, Mar 25, 2015 at 3:20 PM, <[hidden email]> wrote:
It would help to know where the page objects are. Are they in src/test/groovy?


On Wednesday, March 25, 2015 at 11:27:09 AM UTC-7, Christopher Smith wrote:
Team,

I am trying to enable geb and spock tests in a spring mvc sample project via eclipse.

I can run a spring mvc project with spock by itself - built with maven.

I can also run a spring mvc project with geb by itself - built with maven.

I would like to have (1) one project that allows both tests.

I am not a maven expert.  

The error that I get is that the groovy compiler cannot see the page objects.

I think this has to do with some pom.xml configuration.

Thanks for any help


Error statements
---------------------------------


D:\development\workspace\spockMVCTest\src\test\groovy\AppSpec.groovy: 5 Groovy:unable to resolve class apps.CategoryPage
D:\development\workspace\spockMVCTest\src\test\groovy\CheckOutSpec.groovy: 7 Groovy:unable to resolve class apps.ShoppingCartPage
D:\development\workspace\spockMVCTest\src\test\groovy\CheckOutSpec.groovy: 5 Groovy:unable to resolve class apps.CategoryPage
D:\development\workspace\spockMVCTest\src\test\groovy\CheckOutSpec.groovy: 6 Groovy:unable to resolve class apps.CheckOutPage

--
You received this message because you are subscribed to the Google Groups "Spock Framework - User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/spockframework.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "Spock Framework - User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/spockframework.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: spock geb and maven build errors - test packages not seen

Marcin Zajączkowski
On 2015-03-25 21:03, Christopher Smith wrote:
> However, I do have a dumb question,
>
> is the gmaven-plugin still required in the pom.xml file.  It seems to be
> discontinued. and there is a reference to use groovy-eclipse-compiler.

I haven't used Geb for a while and I cannot reference to your case, but
in general if you still use gmaven-plugin it would be good to switch to
https://github.com/groovy/GMavenPlus/ which is actively develop.

Marcin


>
> I used the reference maven stub at
> http://www.gebish.org/manual/current/build-integrations.html
>
> Is this build file dated?
>
> Thanks
>
> On Wed, Mar 25, 2015 at 3:56 PM, Christopher Smith <
> [hidden email]> wrote:
>
>> Team,
>>
>> The directory structure is
>>
>>
>> /src/test/groovy
>>
>> /src/test/pages
>>
>> /src/test/resources
>>
>> I changed the maven <testSourceDirectory/> element to "src/test" and
>> everything worked.
>>
>> On Wed, Mar 25, 2015 at 3:20 PM, <[hidden email]> wrote:
>>
>>> It would help to know where the page objects are. Are they in
>>> src/test/groovy?
>>>
>>>
>>> On Wednesday, March 25, 2015 at 11:27:09 AM UTC-7, Christopher Smith
>>> wrote:
>>>>
>>>> Team,
>>>>
>>>> I am trying to enable geb and spock tests in a spring mvc sample project
>>>> via eclipse.
>>>>
>>>> I can run a spring mvc project with spock by itself - built with maven.
>>>>
>>>> I can also run a spring mvc project with geb by itself - built with
>>>> maven.
>>>>
>>>> I would like to have (1) one project that allows both tests.
>>>>
>>>> I am not a maven expert.
>>>>
>>>> *The error that I get is that the groovy compiler cannot see the page
>>>> objects.*
>>>>
>>>> *I think this has to do with some pom.xml configuration.*
>>>>
>>>> Thanks for any help
>>>>
>>>>
>>>> Error statements
>>>> ---------------------------------
>>>>
>>>>
>>>> D:\development\workspace\spockMVCTest\src\test\groovy\AppSpec.groovy: 5
>>>> Groovy:unable to resolve class apps.CategoryPage
>>>> D:\development\workspace\spockMVCTest\src\test\groovy\CheckOutSpec.groovy:
>>>> 7 Groovy:unable to resolve class apps.ShoppingCartPage
>>>> D:\development\workspace\spockMVCTest\src\test\groovy\CheckOutSpec.groovy:
>>>> 5 Groovy:unable to resolve class apps.CategoryPage
>>>> D:\development\workspace\spockMVCTest\src\test\groovy\CheckOutSpec.groovy:
>>>> 6 Groovy:unable to resolve class apps.CheckOutPage
>>>>


--
http://blog.solidsoft.info/ - Working code is not enough

--
You received this message because you are subscribed to the Google Groups "Spock Framework - User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/spockframework.
For more options, visit https://groups.google.com/d/optout.