Error running Unit Tests: Device not ready?
-
Tuesday, February 03, 2009 3:55 PMI got a new laptop a month ago, and I ran my first unit test on it today, and got the following error;
Failed to queue test run 'MPSwaim@DQSW2427FH1 2009-02-03 09:10:42': The device is not ready.
Error when trying to save result file: The device is not ready.
It SHOULD be doing everything locally. (The DLLs that it's testing are part of the project, and they don't have any external dependencies.) It could be trying to write to a file that's write protected, but I have no idea what that'd be.
Any ideas.
Mike Swaim
All Replies
-
Thursday, February 05, 2009 4:51 AM
Are you running tests via Visual Studio IDE? The error message seems odd. Does the same problem occur if you create a new solution with some simple projects?
Please mark the replies as answers if they help and unmark them if they provide no help. -
Friday, February 06, 2009 1:24 PMI'm running the tests in the IDE.
The problem doesn't occur when I create a new solution with a simple project.
Mike Swaim -
Saturday, February 07, 2009 4:26 PMInteresting.
Since the new solution isn't behaving badly, I'd look to see if there is a DeploymentItem or some other dependency in the broken Solution that is pointing to a drive or path that does not exist on this new laptop. Do you have all the same drive mappings and physical drives as the machine upon which you created the broken Solution?
- Steve
Development Process Consultant - Notion Solutions - http://sstjean.blogspot.com -
Tuesday, February 10, 2009 7:52 PMThe rest of the solution's fine. It's just the tests that are broken, and I didn't create the test project. Infortunately, I don't see any odd includes in the .csproj file.
Mike Swaim -
Wednesday, February 11, 2009 1:55 AMHi Mike,
When the tests run they write to the TestResults folder under the folder that houses the Solution file. Is it possible that the TestResults folder is under version control? If so then one or more of the files that it contains may be Read-Only. This would normally be an unlikely situation, but I'm at a loss otherwise.
- Steve
Development Process Consultant - Notion Solutions - http://sstjean.blogspot.com -
Wednesday, February 11, 2009 1:59 AMHi Mike
Please also enable VSTestHost logging as described here. Hope it can give us more clues. Please let us know whether it help or not.
Please mark the replies as answers if they help and unmark them if they provide no help. -
Monday, February 16, 2009 6:33 PMSteve:
I didn't see a Testresults folder under the solution. I tried adding one to both the test project, and to the solution directory, and it didn't help.
Bill:
I tried enabling VSTestHost logging, but didn't see anything in the log directory.
Mike Swaim

