You are viewing a plain text version of this content. The canonical link for it is here.
Posted to npanday-commits@incubator.apache.org by "Lars Corneliussen (JIRA)" <ji...@apache.org> on 2013/03/13 11:00:13 UTC
[jira] [Commented] (NPANDAY-418) Automatically exclude test sources
from main sources in compile-plugin
[ https://issues.apache.org/jira/browse/NPANDAY-418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13601033#comment-13601033 ]
Lars Corneliussen commented on NPANDAY-418:
-------------------------------------------
The directory exclusion works fine IIRC.
Maybe we should "normalize" all included file-paths (basedir-relative) and then explicitly exclude the test files from the main files.
But it is also OK like it is.
Not sure if docs are updated.
> Automatically exclude test sources from main sources in compile-plugin
> ----------------------------------------------------------------------
>
> Key: NPANDAY-418
> URL: https://issues.apache.org/jira/browse/NPANDAY-418
> Project: NPanday
> Issue Type: Improvement
> Components: Maven Plugins
> Affects Versions: 1.4-incubating
> Reporter: Lars Corneliussen
> Assignee: Lars Corneliussen
> Labels: compile, test
> Fix For: 1.5.0-incubating
>
>
> I'd like to run a configuration, where all test sources are automatically excluded from the main compilation.
> Usually in .NET-Projects, Tests are in a separate assembly. NPanday supports having tests within the same Project, but then they have to be in a separate folder.
> I'd like support for these two layouts:
> {code:title=Layout one}
> MyProj
> - Some.cs
> - More
> - Here.cs
> Test
> - SomeTest.cs
> - More
> - HereTest.cs
> {code}
> {code:title=Layout two}
> MyProj
> - Some.cs
> - SomeTest.cs
> - More
> - Here.cs
> - HereTest.cs
> {code}
> In both cases it should be sufficient to tell NPanday how to find test fixtures. Then it can figure out that those are not to be included in the main artifact.
> What do you think?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira