You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Stephan Windmüller <st...@tu-dortmund.de> on 2015/04/25 23:38:52 UTC

Starting integration tests with IntelliJ

Hello,

I am trying to run a single integration test (FormTests) according to
this webpage:

https://tapestry.apache.org/building-tapestry-from-source.html

The document states that IntelliJ IDEA is the recommended IDE. However,
detailed information on how things are done are only given for Eclipse
and the command line.

In my case, I am trying to run FormTests with "Right Click" and "Run".
This starts Jetty and my browser, but all I get is "Service unavailable"
and the tests fail.

Can anyone tell me how to get these tests running?

Regards
 Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: Starting integration tests with IntelliJ

Posted by Stephan Windmüller <st...@tu-dortmund.de>.
On 01.05.2015, Thiago H de Paula Figueiredo wrote:

>> This seems to indicate that Tapestry hasn't been compiled (and all
>> artifacts copied to the right locations) and/or your class path isn't set
>> up correctly.
> My guess is that the CoffeeScript files weren't compiled into JavaScript
> yet.

Gradle compiled successfully as did "Build / Rebuild Project" in IntelliJ.

The file "t5-core-dom-prototype.js" has been generated in

tapestry-core/src/main/generated/compiled-processed-coffeescript/org/apache/tapestry5/

I marked the folder "compiled-processed-coffeescript" as a resource
folder, but still no luck. I get the same error message as before.

- Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: Starting integration tests with IntelliJ

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Thu, 30 Apr 2015 09:27:31 -0300, Ulrich Stärk <ul...@spielviel.de> wrote:

> This seems to indicate that Tapestry hasn't been compiled (and all
> artifacts copied to the right locations) and/or your class path isn't set
> up correctly.

My guess is that the CoffeeScript files weren't compiled into JavaScript  
yet.

-- 
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: Starting integration tests with IntelliJ

Posted by Ulrich Stärk <ul...@spielviel.de>.
This seems to indicate that Tapestry hasn't been compiled (and all
artifacts copied to the right locations) and/or your class path isn't set
up correctly.

Uli

On Wed, April 29, 2015 21:45, Stephan Windmüller wrote:
> On 29.04.2015, Howard Lewis Ship wrote:
>
>> Uh, works for me.
>
> The main reason seems to be this error:
>
> -----
> org.apache.tapestry5.ioc.internal.util.TapestryException:
> Error invoking service contribution method
> org.apache.tapestry5.modules.JavaScriptModule.setupFoundationFramework(MappedConfiguration,
> String, Resource, Resource):
> Unable to locate asset
> 'classpath:org/apache/tapestry5/t5-core-dom-prototype.js'
> (the file does not exist).
> -----
>
>> I'll have to check.  In many cases, we need to add an annotation to the
>> class to make it run that way, rather than within the full test suite
>> defined within the testng.xml file.
>
> I also tried to run the complete testng.xml in
> tapestry-core/src/test/conf without any luck.
>
> Regards
>  Stephan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: Starting integration tests with IntelliJ

Posted by Stephan Windmüller <st...@tu-dortmund.de>.
On 29.04.2015, Howard Lewis Ship wrote:

> Uh, works for me.

The main reason seems to be this error:

-----
org.apache.tapestry5.ioc.internal.util.TapestryException:
Error invoking service contribution method
org.apache.tapestry5.modules.JavaScriptModule.setupFoundationFramework(MappedConfiguration,
String, Resource, Resource):
Unable to locate asset
'classpath:org/apache/tapestry5/t5-core-dom-prototype.js'
(the file does not exist).
-----

> I'll have to check.  In many cases, we need to add an annotation to the
> class to make it run that way, rather than within the full test suite
> defined within the testng.xml file.

I also tried to run the complete testng.xml in
tapestry-core/src/test/conf without any luck.

Regards
 Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: Starting integration tests with IntelliJ

Posted by Howard Lewis Ship <hl...@gmail.com>.
Uh, works for me.

I'll have to check.  In many cases, we need to add an annotation to the
class to make it run that way, rather than within the full test suite
defined within the testng.xml file.

On Sat, Apr 25, 2015 at 2:38 PM, Stephan Windmüller <
stephan.windmueller@tu-dortmund.de> wrote:

> Hello,
>
> I am trying to run a single integration test (FormTests) according to
> this webpage:
>
> https://tapestry.apache.org/building-tapestry-from-source.html
>
> The document states that IntelliJ IDEA is the recommended IDE. However,
> detailed information on how things are done are only given for Eclipse
> and the command line.
>
> In my case, I am trying to run FormTests with "Right Click" and "Run".
> This starts Jetty and my browser, but all I get is "Service unavailable"
> and the tests fail.
>
> Can anyone tell me how to get these tests running?
>
> Regards
>  Stephan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
>
>


-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com
@hlship