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.

nunit console runner only running x86 instead of x64

See original GitHub issue

These are the arguments I use

–agents=1 –workers=1 –config=Debug –labels=On –wait –skipnontestassemblies –testlist=\TempTests.txt {path to .sln file}

The solution file has configurations for x86 and x64 projects. Running it like this, the console runner only tries to find the .dll inside the Debug folder, which then fails because there is nothing in there. All our tests are written in x64, so is there any way to make the console runner force look at the /Debug/x64 folders?

I think this issue might be related to this one: https://github.com/nunit/nunit3-vs-adapter/issues/384

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
CharliePoolecommented, Jan 9, 2019

Also… here is the documentation of the format

https://github.com/nunit/docs/wiki/NUnit-Project-XML-Format

1reaction
CharliePoolecommented, Jan 9, 2019

In that case, I suggest setting up “configs” that work for you.

  1. Create a name for each grouping of test assemblies you want to run together.

  2. Either manually or using the NUnit Project Editor download, create the XML that represents an NUnit project. See an example at http://nunit.org/files/nunit_project_25.txt but you can leave out most attributes (except for the config and assembly names, of course) until they are needed. Note that the assembly paths are relative to the location of the .nunit file itself. An assembly can appear in more than one config if you need to run differing combinations.

I suggest starting simplly. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to specify to NUnit test runner to execute tests in 64 bits
The console runner provides an --x86 option to run your AnyCpu code in a 32-bit process but no corresponding 64-bit option exists, because...
Read more >
Platform Selection | NUnit Docs
If your tests are compiled x86 or x64, NUnit will run each assembly by default in a process targeted at the appropriate platform...
Read more >
Run a unit test as a 64-bit process - Visual Studio (Windows)
Set the unit tests to run as a 64-bit process. From the Visual Studio menu, choose Test, then choose Processor Architecture for AnyCPU...
Read more >
x86 version of xunit / Questions / Discussion Area
Several of my unit test assemblies can only run in x86 due to dependencies. When run in 64 bit mode they fail. Hence...
Read more >
NUnit Support in TeamCity
NUnit version 3.4.0 is not supported by the NUnit build runner due to a ... allows running NUnit tests under the x86 process...
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