MudassarRasool / mb-unit

Automatically exported from code.google.com/p/mb-unit
0 stars 0 forks source link

This test is not supported by any available test framework. When using MbUnit Test Project #788

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create New MbUnit Test Project (class version; not MVC)
2. Create a Test
3. Run in Icarus (or Resharper)

What is the expected output? What do you see instead?
To run the tests. Instead I see "This test is not supported by any available 
test framework." when obvisouly it worked with the RTM version but no longer 
works after installing below product.

What version of the product are you using? On what operating system?
GallioBundle-3.2.679.0-Setup-x64.msi

Please provide any additional information below.

Original issue reported on code.google.com by cdtha...@gmail.com on 10 Dec 2010 at 9:12

GoogleCodeExporter commented 8 years ago
please note that it also does not work on the included "MbUnit Samples" zip 
file that is included in the install. However the MSTestTestFixture works fine, 
but hte MbUnitTestFixture does not run any tests.

Original comment by cdtha...@gmail.com on 10 Dec 2010 at 9:19

GoogleCodeExporter commented 8 years ago
ok this is really annoying. I cannot install a previous version b/c the version 
installed is newer. However there is no way to remove it from the "Add / Remove 
Programs". What needs to be done to remove it? You'd think an uninstaller would 
be included with the installer.

Original comment by cdtha...@gmail.com on 10 Dec 2010 at 9:31

GoogleCodeExporter commented 8 years ago
Have you rebuilt your MbUnit test project after you reinstalled Gallio?

Original comment by Yann.Tre...@gmail.com on 11 Dec 2010 at 7:44

GoogleCodeExporter commented 8 years ago
The MbUnit Sample Project is not compiled in the zip. I compiled and then tried 
to run the tests but got "This test is not supported by any available test 
framework." from Icarus on the MbUnitTestFixture in the MbUnit Sample Project.

I have also removed the MSI and reinstalled and the same issue happens even if 
I recompile/rebuild the MbUnit Sample Project. The previous 603 RTM version 
(x64) worked just fine.

Original comment by cdtha...@gmail.com on 13 Dec 2010 at 5:58

GoogleCodeExporter commented 8 years ago
Of note. I found that you have to use the MSI to remove rather than "Add / 
Remove Programs". I think this should be added to the Gallio/MbUnit section 
"Program Files" and also in the "Add / Remove Programs". This would be helpful 
since I do not keep the MSI file after installing.

Original comment by cdtha...@gmail.com on 13 Dec 2010 at 6:01

GoogleCodeExporter commented 8 years ago
I have no idea what is doing this. I just removed installation again after 
verifying the previous version still works. I upgraded by redownload and 
re-installing the above mentioned msi file. Now I'm getting a different error 
(see below), but only on first run. I've attached a image file to verify the 
version of the MbUnit to be 3.2.676.0. I've also attached the Gallio versions 
in the c:\system\assembly. Should the Gallio.Loader be of version 3.2? If so 
why isn't it if it is installed?

The Error:
IgnoreReason: Detected a probable test framework assembly version mismatch.
Referenced test frameworks: 'MbUnit, Version=3.2.0.0, Culture=neutral, 
PublicKeyToken=eb9cfa67ee6ab36e'.
Supported test frameworks: 'MbUnit, Version=3.1.0.0'.
File: 
C:\Downloads\MbUnit\samples\MbUnitSamples\MbUnit.Samples\bin\MbUnit.Samples.dll

Original comment by cdtha...@gmail.com on 13 Dec 2010 at 6:25

Attachments:

GoogleCodeExporter commented 8 years ago
here is the gallio test report inside Gallio Icarus.

Original comment by cdtha...@gmail.com on 13 Dec 2010 at 6:32

Attachments:

GoogleCodeExporter commented 8 years ago
In the gallio-gac.png attaced above there were some 3.1 versions installed. I 
found those dll's are from "GallioBundle-3.1.313.0-Setup-x64.msi" and removed 
them. I would also like to note that I had to redownload all the msi's just to 
find which one needed to be uninstalled. On an aside, the uninstall process 
needs to be reworked.

So after removing all versions of Gallio/MbUnit and then reinstalling 
"GallioBundle-3.2.679.0-Setup-x64.msi" it still does not run.

Original comment by cdtha...@gmail.com on 13 Dec 2010 at 7:40

GoogleCodeExporter commented 8 years ago
It looks like now I lost my VS 2008 integration due to the uninstalling the 3.1 
dll's. So this tells me I have to have a previous version installed in order to 
use VS 2008 integration?

Error:
Enables Visual Studio 2008 to run Gallio tests via the Test View.
Disabled: The plugin depends on another disabled plugin: 
'Gallio.VisualStudio.Shell90'.

Original comment by cdtha...@gmail.com on 13 Dec 2010 at 7:41

GoogleCodeExporter commented 8 years ago
You should be able to uninstall using Add/Remove Programs without the msi file. 
I've just installed and uninstalled the latest 3.2 build without any problems 
(twice!), so it must be something to do with upgrading from 3.1. I'll give that 
a try next.

I think once an install is damaged, wix tends to make the problem worse rather 
than fixing it.

There seems to be a problem with Gallio 3.2 and VS 2008 SP1 (see Issue 657), it 
should be fixed soon.

Original comment by grahamr...@gmail.com on 13 Dec 2010 at 10:20

GoogleCodeExporter commented 8 years ago
Yeah the issue 657 could also be part of the problem. I'm running the below if 
it helps.

----------------------------

Microsoft Visual Studio 2008
Version 9.0.30729.1 SP
Microsoft .NET Framework
Version 3.5 SP1

Installed Edition: Professional

Microsoft Visual Basic 2008   91605-270-5062087-60303
Microsoft Visual Basic 2008

Microsoft Visual C# 2008   91605-270-5062087-60303
Microsoft Visual C# 2008

Microsoft Visual C++ 2008   91605-270-5062087-60303
Microsoft Visual C++ 2008

Microsoft Visual Studio 2008 Tools for Office   91605-270-5062087-60303
Microsoft Visual Studio 2008 Tools for Office

Microsoft Visual Web Developer 2008   91605-270-5062087-60303
Microsoft Visual Web Developer 2008

Crystal Reports    AAJ60-G0MSA4K-68000CF
Crystal Reports Basic for Visual Studio 2008

Gallio   Version 3.2 build 676
Gallio integration for Visual Studio

Original comment by cdtha...@gmail.com on 14 Dec 2010 at 5:13

GoogleCodeExporter commented 8 years ago
I'm also running on a Windows 2003 x64 build. x64 part could also be part of it.

Original comment by cdtha...@gmail.com on 14 Dec 2010 at 5:15

GoogleCodeExporter commented 8 years ago
I also have Resharper 5.1 installed. However that obviously doesn't run these 
tests if Icarus doesn't also run them. Due to work obligations I'll probably 
have to take some action by tomorrow so I'll probably end up re-installing VS 
2008 and see if I can get it to work that way or so. If that doesn't work maybe 
I'll end up installing Win 7 x64 as I'm several months behind in rebuilding 
this system to keep it the same as the other developers.

Original comment by cdtha...@gmail.com on 14 Dec 2010 at 5:20

GoogleCodeExporter commented 8 years ago
One thing I just noted is that the installer has 3.2.679 in the file name 
(specifically "679") and yet the VS 2008 info has build "676". Is there a 
mismatch going on in the build process?

Original comment by cdtha...@gmail.com on 14 Dec 2010 at 5:23

GoogleCodeExporter commented 8 years ago
Yes, but I'm pretty sure that's not your problem, it's the same for everyone. I 
think you've somehow got a corrupt installation. 

Can you uninstall everything Gallio related, and give your computer a good 
scrape? Delete anything left over from prog files, the gac etc. You might need 
to use msizap if it's really bad. There might be some registry stuff under 
HKLM\Software\Gallio.org as well.

Then if you install 3.2, you should be alright. (Apart from the VS 2008 
integration, which will be fixed soon).

Original comment by grahamr...@gmail.com on 14 Dec 2010 at 10:26

GoogleCodeExporter commented 8 years ago
Well. Not sure if it was the problem or not, but my hard drive completely 
crashed. Just now finally got Windows 7 installed. So not sure if it worth 
looking more into.

Original comment by cdtha...@gmail.com on 16 Dec 2010 at 7:22

GoogleCodeExporter commented 8 years ago
We've had a few other complaints, there's definitely something wrong with the 
installer. Specifically, uninstalling.

Original comment by grahamr...@gmail.com on 17 Dec 2010 at 9:50