After upgrading Resharper to version 6.1, when I try to run my unit tests using the Resharper test runner I get a pop-up dialog that complains about the test assembly having a BadImageFormatException. How do I get Resharper to run my unit tests?
Resharper 6.1 test runner throws BadImageFormatException
2k Views Asked by Erik Schierboom At
2
There are 2 best solutions below
0
Markus
On
Use a testsettings file in your solution to specify the test architecture. This can be added using Visual Studios "Add Item" from the context menu. In the new file Specify "Run tests in 64 bit process on 64 bit machine" in the Hosts section.
For detailed information refer to Microsoft's documentation.
Related Questions in VISUAL-STUDIO-2012
- An error occurred while trying to restore packages: 'Dapper' already has a dependency defined for 'System.Data.SqlClient'
- Getting Error 0x80131509 whenever I try to create a new empty project (using vs2012 as it's what my uni prefers)
- Visual Basic Supports
- Open Visual Studio 2012 solution in Visual Studio 2013
- Gif is Slow in Visual Studio C# Winform Application?
- The type initializer for 'Sybase.Data.AseClient1.AseConnection' threw an exception. SSIS - Sybase
- Is there a way to fix broken syntax highlighting in Visual Studio 2012?
- Visual Studio Ultimate
- Can __uuidof be used as a C-string const?
- How to connect MS Access database to Visual Basic
- Cannot drag and drop items from toolbox in Visual studio
- Invalid operation. Could not find default endpoint element
- I keep on receiving a "bash permission denied" notification every time I try to execute a program on VS Code
- Wix Toolset v4 Shortcut & installation directory per login user
- Migrating from VS2012: Opening in VS2022 does not prompt for upgrade
Related Questions in RESHARPER
- Visual Studio & Resharper: Rename class only in current project and not entire solution
- What is "Capture namespace name"?
- Where do I configure the severity for R# code inspections?
- Not able to navigate from one type to another in Assembly Explorer from dotPeek
- How to disable auto unwrapping region after i accept Resharper InteliSense autocomplite
- Is that possible to annotate a method NotNull in Rider with a non-invasive way
- Can I make Visual Studio or Resharper skip indentation fixing when formating whole document?
- Resharper data annotation on single line
- Predeploy JetBrains ReShaper Activation Method 'Use License Server' Setting in Visual Studio
- VS2022 + ReSharper broken keyboard shortcut for navigate to Solution Explorer
- Resharper template quick menu showing more entries than configured
- Disable recommendation for primary constructors / IDE0290
- Resharper adding a lot of spaces between method parameter type and name
- ReSharper CLI inspectcode error WorkloadAutoImportPropsLocator could not be found
- How can I profile a Blazor page load?
Related Questions in TEST-RUNNER
- While executing a Test Runner file getting <terminated> TestRunner [junit] C:\Program Files\java\jdk-11\bin\javaw.exe
- TestRunner is not picking up in Cucumber Reports - mvn build is not generating Cucumber reports
- JUnitParamsRunner cannot be resolved
- How to deploy Unity's Test Runner's "Build All Test" .apk to multiple devices?
- Make VSTest ignore TestAdaptersPaths
- Input Test Fixture Input not registering in Unity
- Webdriver IO browser object function doesn't work in certain instances
- How to run tests in StackBlitz?
- Setting system properties from command line but not able to access it in my step definition file
- TestRunner File for Cucumber is not getting executed and not throwing any error
- java.lang.Exception: No tests found matching [{ExactMatcher:fDisplayName=setReportConfiguration],
- Cucumber TestRunner class returning steps as undefined
- How to glue stepdefinition file with feature file programmatically java with Appium
- Web test runner built in server configure
- Cypress - Cannot read properties of undefined (reading '_currentRetry')
Related Questions in RESHARPER-6.1
- Resharper BaseTestClass in other project/assembly
- NUnit test cases not run from inherited class
- Show all files contain same partial class
- Test cases to run in sequence instead of parallel
- Resharper extract interface - default options
- Self Invoking Functions, Resharper 6.1 and JS Lint - Possible to be Valid For Both?
- import settings to resharper 7 from 6.3
- Resharper 6.1 test runner throws BadImageFormatException
- ReSharper Display Items still show up after uninstall
- Does ReSharper 6.1 work with Visual Studio 2012?
- ReSharper Unit Test Runner ignores deployment items configuration
- Call ReSharper ContextAction from Action
- Ignore ReSharper naming rules for DTOs
- Suppress IProgressIndicator in Resharper ContextAction
- Writing a Resharper ContextAction that takes user input
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The problem is that the Resharper test runner expects the test assembly to have the same image format as the test runner itself. The test runner is an x86 application, so this problem can occur when your test assembly is an x64 assembly. The solution is therefore simple: change your test assembly's project properties to build in x86 format. For more details, see this url: http://www.justjuzzy.com/2012/01/resharper-6-1-unit-test-runner-failed-to-load-test-assembly/