<TestAssemly.dll>.config files not loaded when using an .nunit project file and --process=Multiple
See original GitHub issueUsing 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:
- Created 5 years ago
- Reactions:1
- Comments:18 (16 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
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 linenunit3-console --agents=1 --process=separate NHibernate.nunit
. With 3.7.0 we were not having the issue.