And that workaround fixed it! 

So I can confirm Testify works perfectly with JUnit 4.

Thanks again,
Peter


----- Original Message -----
From: "Peter Stavrinides" <p.stavrini...@albourne.com>
To: "Tapestry users" <users@tapestry.apache.org>
Sent: Thursday, 9 July, 2009 17:53:25 GMT +02:00 Athens, Beirut, Bucharest, 
Istanbul
Subject: Re: [Announce] Tapestry Testify project

Great stuff, thanks so much for following up Paul, will let you know if it 
works.

Cheers
Peter


----- Original Message -----
From: "Paul Field" <paul.fi...@db.com>
To: "Tapestry users" <users@tapestry.apache.org>
Cc: "Tapestry users" <users@tapestry.apache.org>
Sent: Thursday, 9 July, 2009 17:46:46 GMT +02:00 Athens, Beirut, Bucharest, 
Istanbul
Subject: Re: [Announce] Tapestry Testify project

Hi Peter,

> Okay, here is my tree:
> 
> [INFO] [dependency:tree]
> [INFO] com.albourne.web:webframework:jar:5.11-SNAPSHOT
> [INFO] +- com.formos.tapestry:tapestry-testify:jar:1.0.0-SNAPSHOT:test
> [INFO] |  \- org.apache.tapestry:tapestry-test:jar:5.1.0.5:test
> [INFO] |     \- org.testng:testng:jar:jdk15:5.8:test
> [INFO] +- HFDB:hfdb:jar:5.11-SNAPSHOT:compile

Aha! So, Testify is bringing in tapestry-test and that's bringing in 
TestNG. Hmmm.... didn't see that in my own project's tree for some reason.

Anyway, I suggest that to work round the problem, you add an exclusion to 
the Testify dependency; something like this:

<dependency>
  <groupId>com.formos.tapestry</groupId>
  <artifactId>tapestry-testify</artifactId>
  <version>1.0.0-SNAPSHOT</version>
  <scope>test</scope>
  <exclusions>
    <exclusion>
      <groupId>org.testng</groupId>
      <artifactId>testng</artifactId>
    </exclusion>
  </exclusions>
</dependency>

And in the next few days, I will update the Testify POM to have that 
exclusion in it.

-- Paul



> 
> ----- Original Message -----
> From: "Paul Field" <paul.fi...@db.com>
> To: "Tapestry users" <users@tapestry.apache.org>
> Cc: "Tapestry users" <users@tapestry.apache.org>
> Sent: Thursday, 9 July, 2009 16:10:11 GMT +02:00 Athens, Beirut, 
> Bucharest, Istanbul
> Subject: Re: [Announce] Tapestry Testify project
> 
> Hi Peter,
> 
> 
> > I suspect that Testify is sourcing in JUnit 3.8.1 and TestNG and 
> > trying to run my tests with those, and as I have no reference to 
> > either in my project I am guessing they come fro Testify... take a 
> > look at this debug output:
> 
> You might find it useful to use the Maven "dependency:tree" goal which 
> will show you all your projects dependencies and the transitive 
> dependencies.
> 
> I can't see that Testify would cause TestNG or JUnit to be pulled into 
> your project (I'm prepared to be wrong though :-) ).
> 
> I know Surefire does some interesting things around picking how to run 
the 
> tests. Have you got an explicit JUnit 4 depenency in your pom? Also make 

> sure you aren't using any TestNG specific things in your Surefire config 

> (such as suiteXmlFiles).
> 
> Other than that, if you could post the results of the dependency:tree 
> goal, that might help.
> 
> -- Paul
> 
> 
> 
> ---
> 
> This e-mail may contain confidential and/or privileged information. 
> If you are not the intended recipient (or have received this e-mail 
> in error) please notify the sender immediately and delete this e-
> mail. Any unauthorized copying, disclosure or distribution of the 
> material in this e-mail is strictly forbidden.
> 
> Please refer to http://www.db.com/en/content/eu_disclosures.htm for 
> additional EU corporate and regulatory disclosures.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 



---

This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and delete this e-mail. Any unauthorized copying, 
disclosure or distribution of the material in this e-mail is strictly forbidden.

Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional 
EU corporate and regulatory disclosures.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to