You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/06/28 23:51:16 UTC
[jira] Closed: (MPECLIPSE-6) junit dependency should be added to classpath even when tests do not exist
Message:
The following issue has been closed.
Resolver: David Eric Pugh
Date: Mon, 28 Jun 2004 5:49 PM
I am marking this as won't fix because I can't think of a good reason to include JUnit if there are no unit test. The one example, writing a JUnit extension is so specific.. and, it will work once you write your first unit test for the extension.. After lal, you are doing TDD ;-).. I looked at putting the logic in, but Jelly is kinda icky and right now it is very clean and legible..
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MPECLIPSE-6
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPECLIPSE-6
Summary: junit dependency should be added to classpath even when tests do not exist
Type: Bug
Status: Closed
Priority: Trivial
Resolution: WON'T FIX
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven-eclipse-plugin
Assignee:
Reporter: Karl Kyck
Created: Wed, 22 Oct 2003 5:19 AM
Updated: Mon, 28 Jun 2004 5:49 PM
Environment: Windows XP SP1, P4 2.6GHz, 512Mb DDR 400
Description:
Created a fresh project.xml with a junit dependency so tests could be written immediately after the .project and .classpath entries were generated, however the junit dependency had not been added to the classpath.
As a test/fix this code
<j:if test="${pom.getDependency('junit') != null}">
<j:set var="depVersion" value="${pom.getDependency('junit').getVersion()}"/>
</j:if>
was moved outside of the
<j:if test="${unitTestSourcesPresent}">
if block, and it worked fine.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org