Menu

#43 Class library .config files causes tests not to run

open
nobody
None
5
2003-08-20
2003-08-20
No

When I run the normal nunit-console.exe, .config files
for classlibraries are nicely picked up by my unit tests.

However when I try to run the nUnit addin on the same
dll and the somedll.dll.config is present in the same
directory, the addin simply reports '---Done---' without
doing anything.

When the .config file is removed, the test is executed
however it obviously cannot find the config settings and
therefore fails, but with proper failed messages.

This pretty much makes this otherwise nice application
useless for my particular tests.

Discussion

  • CommieLib

    CommieLib - 2004-03-09

    Logged In: YES
    user_id=993423

    This is a consequence of a deeper problem: add-in error
    messages have no output stream. What's happening in this
    case is that something is happening in the init of the add-in
    with the config file (it's almost certainly a parsing error) and
    the add-in cannot continue to function.

    If you can track down the problem with the config file, it
    should work fine.

     
  • Jamie Cansdale

    Jamie Cansdale - 2004-04-27

    Logged In: YES
    user_id=619229

    I'll look into it, thanks! There's a new version out
    (NUnitAddin-0.6.207.msi). This issue might be fixed.

     
  • John Watson

    John Watson - 2004-05-25

    Logged In: YES
    user_id=117050

    In the NUnit GUI, go into Project | Edit and change the
    Configuration File Name to 'app.config'. It will then recognize
    the file and make the settings available.

     

Log in to post a comment.