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-8

NUnit Tests Fail To Run with NUnit Version 2.2.8

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 0.16
  • Fix Version/s: 0.16
  • Component/s: Test Plugin
  • Labels:
    None
  • Environment:
    Windows

Description

When running nunit-console (version 2.2.8) from the command line on an NMaven project, I get the following error:

"Could not load file or assembly 'nunit.framework-2.2.8.0, Version=2.2.8.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified."

Everything runs fine with NUnit version 2.2.0.

Issue Links

is depended upon by

Bug - A problem which impairs or prevents the functions of the product. NMAVEN-186 Integration test failures

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Shane Isbell added a comment - 21/Feb/07 10:53 PM

The NUnit assembly for version 2.2.8 does not work with DotGNU, so I recompiled the source, sometime last year. This compile was under one of the old versions of NMaven that still embedded the version in the filename (and hence within the assembly Manifest). The Mono version of nunit-console was on my system path and did not mind that the assembly manifest name (with version attached) was different than the assembly file name. The non-Mono versions do mind and complain about not being able to load the assembly. I fixed this problem by putting a new NUnit 2.2.9 assembly into the trunk: this assembly's filename and name within the manifest match.

Show
Shane Isbell added a comment - 21/Feb/07 10:53 PM The NUnit assembly for version 2.2.8 does not work with DotGNU, so I recompiled the source, sometime last year. This compile was under one of the old versions of NMaven that still embedded the version in the filename (and hence within the assembly Manifest). The Mono version of nunit-console was on my system path and did not mind that the assembly manifest name (with version attached) was different than the assembly file name. The non-Mono versions do mind and complain about not being able to load the assembly. I fixed this problem by putting a new NUnit 2.2.9 assembly into the trunk: this assembly's filename and name within the manifest match.
Hide
Permalink
Carlos Sanchez added a comment - 15/Aug/08 5:53 AM

i see now this same problem, updated the tests to 2.4.8.0 but still the same

Seems that the nunit assembly in the snapshot repo was purged and installing again 2.2.8.0 and 2.4.8.0 doesnt make it work

Could not load file or assembly 'nunit.framework, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77' or one of its dependencies. The system cannot find the file specified.

Show
Carlos Sanchez added a comment - 15/Aug/08 5:53 AM i see now this same problem, updated the tests to 2.4.8.0 but still the same Seems that the nunit assembly in the snapshot repo was purged and installing again 2.2.8.0 and 2.4.8.0 doesnt make it work Could not load file or assembly 'nunit.framework, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77' or one of its dependencies. The system cannot find the file specified.
Hide
Permalink
Carlos Sanchez added a comment - 15/Aug/08 6:00 AM

I have installed nunit with

{mvn install:install-file -DgroupId=org.apache.maven.dotnet -DartifactId=NUnit.Framework -Dversion=2.4.8.0 -Dpackaging=dll -Dfile=./thirdparty/NUnit/nunit.framework.dll}

with the dll from NUnit 2.4.8.0

Show
Carlos Sanchez added a comment - 15/Aug/08 6:00 AM I have installed nunit with {mvn install:install-file -DgroupId=org.apache.maven.dotnet -DartifactId=NUnit.Framework -Dversion=2.4.8.0 -Dpackaging=dll -Dfile=./thirdparty/NUnit/nunit.framework.dll} with the dll from NUnit 2.4.8.0
Hide
Permalink
Shane Isbell added a comment - 15/Aug/08 9:18 AM

Are you seeing this on trunk or 0.14?

Show
Shane Isbell added a comment - 15/Aug/08 9:18 AM Are you seeing this on trunk or 0.14?
Hide
Permalink
Carlos Sanchez added a comment - 17/Aug/08 4:00 PM

in trunk

Not that probably the NUnit dll used before was purged from the snapshot repo

Show
Carlos Sanchez added a comment - 17/Aug/08 4:00 PM in trunk Not that probably the NUnit dll used before was purged from the snapshot repo
Hide
Permalink
Brett Porter added a comment - 01/Oct/08 10:16 AM

a number of fixes were made - refer to the branch and final commit for more information

Show
Brett Porter added a comment - 01/Oct/08 10:16 AM a number of fixes were made - refer to the branch and final commit for more information

People

  • Assignee:
    Brett Porter
    Reporter:
    Shane Isbell
Vote (0)
Watch (0)

Dates

  • Created:
    21/Feb/07 9:03 PM
    Updated:
    01/Oct/08 10:16 AM
    Resolved:
    01/Oct/08 10:16 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.