jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • NMaven (Retired)
  • NMAVEN-186

Integration test failures

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 0.14 (Unreleased), 0.16
  • Fix Version/s: 0.16
  • Component/s: Integration Testing
  • Labels:
    None
  • Patch Submitted:
    Yes

Description

Failing tests in http://svn.apache.org/repos/asf/incubator/nmaven/branches/NMAVEN_0.14/integration-tests/tests

8/18 passed
Failed tests: [it0002, it0003, it0004, it0005, it0010, it0011, it0018, it0019, it0028, it0029]

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    core-integration-tests.patch
    15/Aug/08 5:57 AM
    87 kB
    Carlos Sanchez
  2. Text File
    core-integration-tests.patch
    13/Aug/08 5:46 PM
    70 kB
    Carlos Sanchez
  3. File
    core-integration-tests-0.14.tgz
    02/Sep/08 6:53 AM
    12 kB
    Carlos Sanchez
  4. Text File
    core-integration-tests-trunk.patch
    02/Sep/08 6:59 AM
    88 kB
    Carlos Sanchez
  5. Text File
    it.log
    01/Aug/08 1:47 PM
    62 kB
    Carlos Sanchez
  6. Text File
    log.txt
    10/Aug/08 11:20 AM
    4 kB
    Carlos Sanchez
  7. Text File
    surefire.patch
    10/Aug/08 11:18 AM
    0.6 kB
    Carlos Sanchez

Issue Links

depends upon

Bug - A problem which impairs or prevents the functions of the product. NMAVEN-192 null toolchain on test-compile mojo

  • Blocker - Blocks development and/or testing work, production could not run
  • Open - The issue is open and ready for the assignee to start work on it.

Bug - A problem which impairs or prevents the functions of the product. NMAVEN-8 NUnit Tests Fail To Run with NUnit Version 2.2.8

  • Minor - Minor loss of function, or other problem where easy workaround is present.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Improvement - An improvement or enhancement to an existing feature or task. NMAVEN-193 Recognise NUnit artifact conventions used in trunk

  • Major - Major loss of function.
  • Open - The issue is open and ready for the assignee to start work on it.
is depended upon by

New Feature - A new feature of the product, which has yet to be developed. NMAVEN-199 Create an aspx-compiler-mojo for precompilation of ASP .NET pages

  • Major - Major loss of function.
  • Open - The issue is open and ready for the assignee to start work on it.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Carlos Sanchez added a comment - 10/Aug/08 11:18 AM

Maybe i am missing something but integration tests in trunk are also failing. By default they are not even running, I had to add surefire plugin configuration to the pom.

Failed tests:
testit0014(org.apache.maven.dotnet.integrationtests.MavenITmng0014ResolveLibraryDependency)
testit0008(org.apache.maven.dotnet.integrationtests.MavenITmng0008CSharpCompileWithProvidedDependency)
testit0004(org.apache.maven.dotnet.integrationtests.MavenITmng0004CSharpCompileWithDependency)
testit0007(org.apache.maven.dotnet.integrationtests.MavenITmng0007CSharpCompileTestLibrary)
testit0000(org.apache.maven.dotnet.integrationtests.MavenITmng0000CSharpCompileLibrary)
testit0004(org.apache.maven.dotnet.integrationtests.MavenITmng0004CSharpCompileWithDependency)
testit0005(org.apache.maven.dotnet.integrationtests.MavenITmng0005CSharpCompileWithTransitiveDependency)
testit0007(org.apache.maven.dotnet.integrationtests.MavenITmng0007CSharpCompileTestLibrary)
testit0008(org.apache.maven.dotnet.integrationtests.MavenITmng0008CSharpCompileWithProvidedDependency)
testit0009(org.apache.maven.dotnet.integrationtests.MavenITmng0009CSharpCompileWithProvidedGacDependency)
testit0005(org.apache.maven.dotnet.integrationtests.MavenITmng0005CSharpCompileWithTransitiveDependency)
testit0000(org.apache.maven.dotnet.integrationtests.MavenITmng0000CSharpCompileLibrary)
testit0000(org.apache.maven.dotnet.integrationtests.MavenITmng0000CSharpCompileLibrary)
testit0004(org.apache.maven.dotnet.integrationtests.MavenITmng0004CSharpCompileWithDependency)
testit0005(org.apache.maven.dotnet.integrationtests.MavenITmng0005CSharpCompileWithTransitiveDependency)
testit0007(org.apache.maven.dotnet.integrationtests.MavenITmng0007CSharpCompileTestLibrary)
testit0008(org.apache.maven.dotnet.integrationtests.MavenITmng0008CSharpCompileWithProvidedDependency)

Tests run: 55, Failures: 17, Errors: 0, Skipped: 0

Show
Carlos Sanchez added a comment - 10/Aug/08 11:18 AM Maybe i am missing something but integration tests in trunk are also failing. By default they are not even running, I had to add surefire plugin configuration to the pom. Failed tests: testit0014(org.apache.maven.dotnet.integrationtests.MavenITmng0014ResolveLibraryDependency) testit0008(org.apache.maven.dotnet.integrationtests.MavenITmng0008CSharpCompileWithProvidedDependency) testit0004(org.apache.maven.dotnet.integrationtests.MavenITmng0004CSharpCompileWithDependency) testit0007(org.apache.maven.dotnet.integrationtests.MavenITmng0007CSharpCompileTestLibrary) testit0000(org.apache.maven.dotnet.integrationtests.MavenITmng0000CSharpCompileLibrary) testit0004(org.apache.maven.dotnet.integrationtests.MavenITmng0004CSharpCompileWithDependency) testit0005(org.apache.maven.dotnet.integrationtests.MavenITmng0005CSharpCompileWithTransitiveDependency) testit0007(org.apache.maven.dotnet.integrationtests.MavenITmng0007CSharpCompileTestLibrary) testit0008(org.apache.maven.dotnet.integrationtests.MavenITmng0008CSharpCompileWithProvidedDependency) testit0009(org.apache.maven.dotnet.integrationtests.MavenITmng0009CSharpCompileWithProvidedGacDependency) testit0005(org.apache.maven.dotnet.integrationtests.MavenITmng0005CSharpCompileWithTransitiveDependency) testit0000(org.apache.maven.dotnet.integrationtests.MavenITmng0000CSharpCompileLibrary) testit0000(org.apache.maven.dotnet.integrationtests.MavenITmng0000CSharpCompileLibrary) testit0004(org.apache.maven.dotnet.integrationtests.MavenITmng0004CSharpCompileWithDependency) testit0005(org.apache.maven.dotnet.integrationtests.MavenITmng0005CSharpCompileWithTransitiveDependency) testit0007(org.apache.maven.dotnet.integrationtests.MavenITmng0007CSharpCompileTestLibrary) testit0008(org.apache.maven.dotnet.integrationtests.MavenITmng0008CSharpCompileWithProvidedDependency) Tests run: 55, Failures: 17, Errors: 0, Skipped: 0
Hide
Permalink
Carlos Sanchez added a comment - 10/Aug/08 11:18 AM

Patch to enable the integration tests

Show
Carlos Sanchez added a comment - 10/Aug/08 11:18 AM Patch to enable the integration tests
Hide
Permalink
Carlos Sanchez added a comment - 10/Aug/08 11:20 AM

For instance for IT0000 which is a very simple build of .net I get this log.

[ERROR] Missing toolchain factory for type:dotnet. Possibly caused by misconfigured project.

Looking at the code it means that the plugin can't find an implementation of the toolchain for the dotnet role, but maven-dotnet-toolchain 0.16-incubating-SNAPSHOT is in the extensions of the pom and its components.xml looks right to me.

Show
Carlos Sanchez added a comment - 10/Aug/08 11:20 AM For instance for IT0000 which is a very simple build of .net I get this log. [ERROR] Missing toolchain factory for type:dotnet. Possibly caused by misconfigured project. Looking at the code it means that the plugin can't find an implementation of the toolchain for the dotnet role, but maven-dotnet-toolchain 0.16-incubating-SNAPSHOT is in the extensions of the pom and its components.xml looks right to me.
Hide
Permalink
Carlos Sanchez added a comment - 13/Aug/08 5:40 PM

The test compiler plugin needs to be fixed first

Show
Carlos Sanchez added a comment - 13/Aug/08 5:40 PM The test compiler plugin needs to be fixed first
Hide
Permalink
Carlos Sanchez added a comment - 13/Aug/08 5:46 PM

Patch that fixes all it tests in trunk

  • allows running its against either microsoft or mono (in the future should test against both)
  • sets a parent pom for all tests that setups the toolchain

Also need:

copy http://svn.apache.org/repos/asf/incubator/nmaven/branches/NMAVEN_0.14/thirdparty/NUnit into trunk/thirdparty/NUnit
copy maven-dotnet-toolchain-0.16-incubating-SNAPSHOT.jar into M2_HOME/lib

the 2nd requirement is due to a problem with the plexus container not finding the DotNet toolchain will look into it afterwards now that I know IT tests pass

The toolchain config looks like

<toolchain>
        <type>dotnet</type>
        <provides>
            <frameworkVersion>2.0</frameworkVersion>
            <vendorVersion>2.0.50727</vendorVersion>
            <vendor>MICROSOFT</vendor>
            <id>.NET Framework 2.0</id>
        </provides>
        <configuration>
            <csharpCompiler>C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe</csharpCompiler>
            <nunitConsole>C:\Program Files\NUnit 2.4.8\bin\nunit-console.exe</nunitConsole> 
        </configuration>
    </toolchain>
Show
Carlos Sanchez added a comment - 13/Aug/08 5:46 PM Patch that fixes all it tests in trunk
  • allows running its against either microsoft or mono (in the future should test against both)
  • sets a parent pom for all tests that setups the toolchain
Also need: copy http://svn.apache.org/repos/asf/incubator/nmaven/branches/NMAVEN_0.14/thirdparty/NUnit into trunk/thirdparty/NUnit copy maven-dotnet-toolchain-0.16-incubating-SNAPSHOT.jar into M2_HOME/lib the 2nd requirement is due to a problem with the plexus container not finding the DotNet toolchain will look into it afterwards now that I know IT tests pass The toolchain config looks like
<toolchain>
        <type>dotnet</type>
        <provides>
            <frameworkVersion>2.0</frameworkVersion>
            <vendorVersion>2.0.50727</vendorVersion>
            <vendor>MICROSOFT</vendor>
            <id>.NET Framework 2.0</id>
        </provides>
        <configuration>
            <csharpCompiler>C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe</csharpCompiler>
            <nunitConsole>C:\Program Files\NUnit 2.4.8\bin\nunit-console.exe</nunitConsole> 
        </configuration>
    </toolchain>
Hide
Permalink
Carlos Sanchez added a comment - 15/Aug/08 5:57 AM

Updated patch that makes easier to use its agains trunk or 0.14 branch (see convert-to-0.14.txt)

Tests related to the nunit testing fail (0007 is the basic one), see NMAVEN-8

Requires all linked issues to be fixed first and install the nunit assembly

Show
Carlos Sanchez added a comment - 15/Aug/08 5:57 AM Updated patch that makes easier to use its agains trunk or 0.14 branch (see convert-to-0.14.txt) Tests related to the nunit testing fail (0007 is the basic one), see NMAVEN-8 Requires all linked issues to be fixed first and install the nunit assembly
Hide
Permalink
Carlos Sanchez added a comment - 15/Aug/08 6:04 AM

last patch still needs the workaround of copying maven-dotnet-toolchain-0.16-incubating-SNAPSHOT.jar into M2_HOME/lib

Show
Carlos Sanchez added a comment - 15/Aug/08 6:04 AM last patch still needs the workaround of copying maven-dotnet-toolchain-0.16-incubating-SNAPSHOT.jar into M2_HOME/lib
Hide
Permalink
Carlos Sanchez added a comment - 15/Aug/08 6:06 AM

The tests can be run with
mvn clean install -Dnmaven.vendor=MICROSOFT

Show
Carlos Sanchez added a comment - 15/Aug/08 6:06 AM The tests can be run with mvn clean install -Dnmaven.vendor=MICROSOFT
Hide
Permalink
Carlos Sanchez added a comment - 02/Sep/08 7:00 AM

Let's see if I can sum it up

For trunk:

  • Apply core-integration-tests-trunk.patch
  • copy maven-dotnet-toolchain-0.16-incubating-SNAPSHOT.jar to M2_HOME/lib
  • Install NUnit in the local repo, doesn't seem to find the one installed in the gac by the 0.14 bootstrap
  • I used the one from 0.14 branch, although doesn't matter much, tests don't pass
    copy http://svn.apache.org/repos/asf/incubator/nmaven/branches/NMAVEN_0.14/thirdparty/NUnit/NUnit.Framework.dll to
    C:\Documents and Settings\username\.m2\repository\NUnit\NUnit.Framework\2.2.8.0\NUnit.Framework-2.2.8.0.dll
  • run mvn clean install -Dnmaven.vendor=MICROSOFT. Tests 0007 and 0019 doesn't pass, see NMAVEN-8

For 0.14:

  • run the bootstrap as usual (I think only the NUnit installation is needed)
  • unpack core-integration-tests-0.14.tgz which is a branch from trunk tests adapted to 0.14
  • run mvn clean install. All tests pass
Show
Carlos Sanchez added a comment - 02/Sep/08 7:00 AM Let's see if I can sum it up For trunk:
  • Apply core-integration-tests-trunk.patch
  • copy maven-dotnet-toolchain-0.16-incubating-SNAPSHOT.jar to M2_HOME/lib
  • Install NUnit in the local repo, doesn't seem to find the one installed in the gac by the 0.14 bootstrap
  • I used the one from 0.14 branch, although doesn't matter much, tests don't pass copy http://svn.apache.org/repos/asf/incubator/nmaven/branches/NMAVEN_0.14/thirdparty/NUnit/NUnit.Framework.dll to C:\Documents and Settings\username\.m2\repository\NUnit\NUnit.Framework\2.2.8.0\NUnit.Framework-2.2.8.0.dll
  • run mvn clean install -Dnmaven.vendor=MICROSOFT. Tests 0007 and 0019 doesn't pass, see NMAVEN-8
For 0.14:
  • run the bootstrap as usual (I think only the NUnit installation is needed)
  • unpack core-integration-tests-0.14.tgz which is a branch from trunk tests adapted to 0.14
  • run mvn clean install. All tests pass
Hide
Permalink
Brett Porter added a comment - 22/Sep/08 10:30 AM

I've created a branch and partially applied this, adding a notes file for the changes I'm pursuing... let me know your thoughts.

Show
Brett Porter added a comment - 22/Sep/08 10:30 AM I've created a branch and partially applied this, adding a notes file for the changes I'm pursuing... let me know your thoughts.

People

  • Assignee:
    Brett Porter
    Reporter:
    Carlos Sanchez
Vote (0)
Watch (0)

Dates

  • Created:
    01/Aug/08 1:47 PM
    Updated:
    25/Sep/08 2:22 AM
    Resolved:
    25/Sep/08 2:22 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.