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 2003/11/09 15:48:04 UTC

[jira] Commented: (MAVEN-958) junit dependency should be added to classpath even when tests do not exist

The following comment has been added to this issue:

     Author: dion gillard
    Created: Sun, 9 Nov 2003 8:47 AM
       Body:
If a project doesn't declare it has unit test source code, why should we add junit to it's classpath?
---------------------------------------------------------------------
View the issue:

  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-958


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-958
    Summary: junit dependency should be added to classpath even when tests do not exist
       Type: Bug

     Status: Unassigned
   Priority: Trivial

 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
 Components: 
             plugin-eclipse
   Versions:
             1.1

   Assignee: 
   Reporter: Karl Kyck

    Created: Wed, 22 Oct 2003 5:19 AM
    Updated: Wed, 22 Oct 2003 5:19 AM
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