question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

<TestAssemly.dll>.config files not loaded when using an .nunit project file and --process=Multiple

See original GitHub issue

Using a .nunit file to run multiple assemblies and --process=Multiple will no longer attempt to load a <TestAssemblyName>.dll.config file for each assembly, where as versions 3.7 and earlier would.

The command line i’m using is: nunit3-console NUnitProjectFile.nunit --process=Multiple

My .nunit file is like this:

<NUnitProject>
  <Settings activeconfig="Release"/>
  <Config name="Release" binpathtype="Auto">
    <assembly path="TestAssembly1.dll" />
    <assembly path="TestAssembly2.dll" />
  </Config>
</NUnitProject>

Previously this would result in the respective TestAssemblyN.dll.config being loaded for each test assembly, but this is no longer the case as of 3.8. Now the only config file that is attempted to be loaded is NUnitProjectFile.nunit.config (can be seen in SysInternals Process Explorer during a test run).

This seems to be related to the change in behaviour noted in issue #382.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:18 (16 by maintainers)

github_iconTop GitHub Comments

2reactions
CharliePoolecommented, Nov 7, 2021

Does anyone remember when we started doing the 3.7 behavior, which is no longer there? I know that we originally required a single config file for an nunit project. See, for example this article, which I wrote in 2005.

I believe we made the change to using separate configs if a general config was not provided sometime at the start of NUnit 3 and I’d like to update the article.

2reactions
fredericDelaportecommented, Sep 15, 2019

This trouble of .config file not loaded also occurs with 3.10.0 when using --process=separate command line argument. Not specifying the process option dodges the issue. This has been reproduced with this project and the command line nunit3-console --agents=1 --process=separate NHibernate.nunit. With 3.7.0 we were not having the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

nUnit tests looking for {assembly-name}.dll.config
As an experiment, I removed App.config from one of the test-projects. Now when I run its tests in Visual Studio, nUnit throws errors...
Read more >
Console and Engine Release Notes
382 Only 1 agent running with multiple projects and --process=Multiple; 418 <TestAssembly.dll>.config files not loaded when using an .nunit project file and ...
Read more >
app.config files are ignored by NUnit 3.0 Test Adapter
While trying to solve the issue with config file I found that NUnit 3.0 Test adapter uses vstest.console.exe.config as config file for my...
Read more >
Test Configuration File
NUnit uses configuration files for the test runner executable either nunit-console.exe or nunitgui.exe as well as for the tests...
Read more >
Test Configuration File
If an NUnit project is being loaded into a single AppDomain, the configuration file uses the name of the project file with the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found