473,624 Members | 2,323 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VS05, failing to recognize that unit tests exist

We're using VS05 and today the units tests have stopped working in our
development environment. I'm sure that it is something really silly and
simple but I'll be darned if I can figure out what it is.

Here's a failure example: I created a simple little C# program called Test1.
I added a new class that has a public method Sum, which does the brilliant
function of adding two numbers together and returning the result.

I added a unit test by clicking on "Test->New Test" and selected the Unit
Test Wizard. It wanted to create a test project and this was named
TestTest1. A form opened and I navigated down through the namespaces until I
got to the method to be exercised. I checked this and hit OK. The TestTest1
project was added to the solution and the code to test Sum was created by
the wizard. I modified the test code so that it actually had valid values
with which to work. It all builds but I just don't seem to be able to get
any tests to actually run.

Selecting project Test1 results in the menu command "Test->Start Selected
Test Project with Debugger" being disabled.

Selecting project TestTest1 results in the menu command being enabled but
actuating this command results in "Cannot start test project 'TestTest1'
because the project does not contain any tests."

Right clicking on TestTest1 and selecting "Run Unit Tests" results in no
tests being run The Unit Test Runner appears but has no tests listed in it.

I added another method to ToBeTested called Add, right clicked on project
TestTest1 and selected Add->Unit Test...Again, I navigated down through the
name spaces and selected 'Add'. The method AddTest was created for me in the
test file. However, this time, a dialog appears. "Column 'TestType' does not
belong to table test." What does this mean? I get this same dialog when
trying to run tests sometimes, depending upon how the test run is started.

I've spent hours going around in circles on this. Please help!

--
Richard Lewis Haggard
General: www.Haggard-And-Associates.com
Please come visit here for thousands of good giggles!:
www.haggard-and-associates.com/Humor/humor.htm
Sep 10 '07 #1
1 3437
Oh! This may be an environmental problem. I deleted the solution's SUO file
and then the problem went away. I suspect that there is an interaction
between VS05, service pack 1, WPF, Enterprise Library, CAB and SCSF and how
the VS05 unit test functionality works. This solution worked on 3 out of 4
machines I tried it on. The remaining machine is still displaying the
"Column 'TestType' does not belong to table test" message box.
--
Richard Lewis Haggard
General: www.Haggard-And-Associates.com
Please come visit here for thousands of good giggles!:
www.haggard-and-associates.com/Humor/humor.htm

"Richard Lewis Haggard" <HaggardAtWorld DotStdDotComwro te in message
news:uE******** ********@TK2MSF TNGP06.phx.gbl. ..
We're using VS05 and today the units tests have stopped working in our
development environment. I'm sure that it is something really silly and
simple but I'll be darned if I can figure out what it is.

Here's a failure example: I created a simple little C# program called
Test1. I added a new class that has a public method Sum, which does the
brilliant function of adding two numbers together and returning the
result.

I added a unit test by clicking on "Test->New Test" and selected the Unit
Test Wizard. It wanted to create a test project and this was named
TestTest1. A form opened and I navigated down through the namespaces until
I got to the method to be exercised. I checked this and hit OK. The
TestTest1 project was added to the solution and the code to test Sum was
created by the wizard. I modified the test code so that it actually had
valid values with which to work. It all builds but I just don't seem to be
able to get any tests to actually run.

Selecting project Test1 results in the menu command "Test->Start Selected
Test Project with Debugger" being disabled.

Selecting project TestTest1 results in the menu command being enabled but
actuating this command results in "Cannot start test project 'TestTest1'
because the project does not contain any tests."

Right clicking on TestTest1 and selecting "Run Unit Tests" results in no
tests being run The Unit Test Runner appears but has no tests listed in
it.

I added another method to ToBeTested called Add, right clicked on project
TestTest1 and selected Add->Unit Test...Again, I navigated down through
the name spaces and selected 'Add'. The method AddTest was created for me
in the test file. However, this time, a dialog appears. "Column 'TestType'
does not belong to table test." What does this mean? I get this same
dialog when trying to run tests sometimes, depending upon how the test run
is started.

I've spent hours going around in circles on this. Please help!

--
Richard Lewis Haggard
General: www.Haggard-And-Associates.com
Please come visit here for thousands of good giggles!:
www.haggard-and-associates.com/Humor/humor.htm


Sep 10 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
1820
by: Jacob Page | last post by:
I have released interval-0.2.1 at http://members.cox.net/apoco/interval/. IntervalSet and FrozenIntervalSet objects are now (as far as I can tell) functionality equivalent to set and frozenset objects, except they can contain intervals as well as discrete values. Though I have my own unit tests for verifying this claim, I'd like to run my code through actual set and frozenset unit tests. Does any such code exist? Is it in pure...
3
1662
by: bob | last post by:
Hello, I've tried a few testing frameworks with C# but so far haven't found a way to debug into a failing test. I'm used to S Unit (Smalltalk) where when a test fails you just right click on it and say debug and the program halts at the point where the test fails. This makes it very easy to debug the test as you have the stack, locals etc. At them moment I'm having to recompile the main loop to call the failing test and put a break in...
14
2737
by: | last post by:
Hi! I'm looking for unit-testing tools for .NET. Somthing like Java has --> http://www.junit.org regards, gicio
18
1861
by: Scott David Daniels | last post by:
There has been a bit of discussion about a way of providing test cases in a test suite that _should_ work but don't. One of the rules has been the test suite should be runnable and silent at every checkin. Recently there was a checkin of a test that _should_ work but doesn't. The discussion got around to means of indicating such tests (because the effort of creating a test should be captured) without disturbing the development flow. ...
72
5226
by: Jacob | last post by:
I have compiled a set og unit testing recommendations based on my own experience on the concept. Feedback and suggestions for improvements are appreciated: http://geosoft.no/development/unittesting.html Thanks.
176
8325
by: nw | last post by:
Hi, I previously asked for suggestions on teaching testing in C++. Based on some of the replies I received I decided that best way to proceed would be to teach the students how they might write their own unit test framework, and then in a lab session see if I can get them to write their own. To give them an example I've created the following UTF class (with a simple test program following). I would welcome and suggestions on how anybody...
48
2483
by: Ark Khasin | last post by:
Unit testing is an integral component of both "formal" and "agile" models of development. Alas, it involves a significant amount of tedious labor. There are test automation tools out there but from what limited exposure I've had, they are pricey, reasonably buggy, and require compiler/target adaptation. Out of my frustration with two out of two of them came my own. Its instrumentation approach is based solely on profound abuse of the C
20
2418
by: earthwormgaz | last post by:
Hello, I'm after doing some C++ unit testing, I'm using CppUnit. I like the look of RudeMocks, but it doesn't work for Solaris/Sparc, so its no good to me sadly. So, I have class A, and it uses classes B and C. B and C have methods A uses, but they're not virtual, and I don't want to hack the code so that they are just to allow Unit Tests to work. This means that inheriting from B and C to provide Mock classes is a non starter.
2
1036
by: ReneMarxis | last post by:
Hello Can anyone tell me if there exist some tools for doing automated unit tests? What i need is something like NUnit ore #unit but with the possebility to feed the tests from external, eg. some xml file and get the results also as file. The project i am going to use it is very big and automated unit tests arebe very required.
0
8242
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8681
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8629
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8341
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8488
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7170
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6112
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5570
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
1488
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.