Testing Frameworks For Small Projects?

Feb 16, 2011

I know this question has been asked before, but none of the existing SO questions provide an adequate answer for my specific case.

I'm the lone developer working on a project mostly during free time. I'm approaching 100 classes so far, and I'm starting to realize that testing that many classes is becoming daunting. Especially as I go back and add in operator overloads for =, <>, CType, and Not; implement IComparable(Of T), IEquatable(Of T), IEqualityComparer(Of T); and overriding base methods like Equals and GetHashCode.

My current testing method has been to randomly scribble out some Debug.Print code for a specific class/method on a dummy form behind a single button, run the project, click the button, and make sure the Debug window has my expected value. But this is both tedious and starting to become a time waster.

What I know that I need to do is for each and every class, draft up a set of tests specific to that class to test its functionality. So I go and look at testing frameworks like NUnit, Gallio/MbUnit, etc. But I really don't see the value in them. It so far seems that I could just write a dedicated test class for each implemented class, wrapped in #If DEBUG/#End If blocks, and link those to a bunch of buttons on a large form to run my tests.

But that could take weeks at my current rate. So I ask SO for their opinion on how to approach something like this. Am I better off figuring out how to integrate one of these open source testing frameworks into my project? Or should I just write a bunch of testing classes and output their data somewhere?

I use VB Express 2010 and VS 2010, depending on which computer I'm on so I'll need to be able to do testing in both.

View 1 Replies


ADVERTISEMENT

Open Source Projects Using BDD Testing?

Mar 9, 2011

My team is interesting in understanding BDD better. Are there open source .NET/Java projects which use behavior driven development (BDD)?I would like to focus my attention on static language examples.

View 5 Replies

Sql - Unit Testing The Data Access Layer - Testing Update Methods?

May 15, 2009

I'm looking into adding some unit tests for some classes in my data access layer and I'm looking at an update routine that has no return value.It simply updates a row based on the id you provide at whichever column name you provide.Inside of this method, we collect the parameters and pass them to a helper routine which calls the stored procedure to update the table.Is there a recommended approach for how to do unit testing in such a scenario?

View 4 Replies

Difference Between NUnit Testing And Unit Testing In VSTS?

Aug 25, 2009

I use VS team system 2008. At the moment i need to test some business classes, i have found two kinds testing NUnit and the unit testing provided by the VS team system. what are there differences?

View 1 Replies

.net - Unit Testing C# InternalsVisibleTo() Attribute For NET 2.0 While Testing?

May 13, 2010

I'm building an Active Directory wrapper in VBNET 2.0 (can't use later .NET) in which I have the following:

IUtilisateur
IGroupe
IUniteOrganisation

These interfaces are implemented in internal classes (Friend in VBNET), so that I want to implement a façade in order to instiate each of the interfaces with their internal classes. This will allow the architecture a better flexibility, etc.Now, I want to test these classes (Utilisateur, Groupe, UniteOrganisation) in a different project within the same solution. However, these classes are internal. I would like to be able to instantiate them without going through my façade, but only for these tests, nothing more.

[Code]...

View 1 Replies

Make A Small Program For Ticketing On A Parking For A Small Hotel?

Aug 27, 2010

I need to make a small programm for ticketing on a parking for a small hotel.So i have 2 Printers pariking In (for delivery of the tickets) and 2 Readers PArking Out.Both Printers and REaders are working Serial.So i need to poll the serial ports of the printers and readers every second.The data is stored on a SQL database so i need to read and write in the database.Can i do this with 1 PC and 1 programm or 1 PC and 4 programms that are runnning at the same time ?

View 2 Replies

Create A Small Application That Can Make Small Calculations?

Feb 1, 2010

On form 1 , i have a number of buttons that open up different websites.What i want to do is when i click a button on form 1 , i want forum 2 to show ( Form2.show() ) , Form 2 will have a list (Buttons) of internet browsers.

View 4 Replies

Convert My App To Be Compatible With Old NET Frameworks?

Jul 26, 2011

I create a Windows Form Application with Framework 4 (x86) in Windows 7 x64 Ultimate using Visual Studio Ultimate 2010 x86.

How I convert my app to run with old .NET Frameworks? My app need to be compatible with more number of computers as possible without need to install the new version of framework

View 5 Replies

Removing Projects From VB2008 Start Page Recent Projects List?

Mar 15, 2009

Removing projects from VB2008 start page recent projects list. The above list is getting clogged. How do I remove items from this list?

View 3 Replies

Compiling Executable To Work In All Frameworks?

Nov 29, 2010

I have created an exe file by compling on vb. However finding that not all systems like it and .net framework & isnt as compatible as you first think. I have create an application which doesnt use "imports" to reference anything. I compiled it in .net framework 2.0. It didnt work on XP machine which had .net Framework 4.0 got runtime error. Is there anyway making the compliled .exe available for all frameworks or am I going to have to create an .exe for each .net framework to encompass all versions?? Does it have to use .net framework at all depending on the application?

View 3 Replies

Good Way To Give A Brief Overview Of What .Net Frameworks Are

Jul 2, 2009

What's a good way to define what the Framework's are?Basically I'm looking for a good way to give a brief overview of what the .Net Frameworks are and why an average person should have them installed.

View 3 Replies

Impact Of Selected Target Frameworks?

Jul 26, 2010

In Visual Studio i can select the target .net framework version, which for example defaults to 3.5. Now when i build my application with this setting, i guess it wont work on computers with .net framework 3.5 not installed, right?But lets say i choose .net framework 2.0 as target .net framework. Will my application work on computers that have .net 3.0 or .net 3.5 framework installed, but not 2.0?In other words: Is the .net framwork always backward-compatible?

View 1 Replies

Switching Between Frameworks In Existing Applications?

Aug 27, 2009

I have 1.0, 2.0, 3.5 and 4.0 framework versions installed but when I edit/upgrade existing .NET applications, how can I target newer frameworks? I am using VS 2005. But I also have 2008 and Beta 2010.

View 2 Replies

Detect Witch Frameworks Are Installed In A Machine?

Feb 12, 2010

I'm looking on the Internet but not found anything about how to detect what the frameworks are installed. Someone I can provide that code to VB. Net? TcoUpLoad (work with Vb6 and VbNet)

View 3 Replies

VS 2010 Target Frameworks Change Standard

Feb 16, 2011

Each new project VS sets the Frameworks to 4 Client. How do I change it that it always chooses Full?

View 4 Replies

Make A Program In Visual Studio 10 That Works On Older .net Frameworks?

Aug 30, 2009

how do i make a program in visual studio 10 that works on older .net frameworks?

View 1 Replies

.net And Jemter Testing?

May 17, 2012

In my project developed for using asp.net with vb.net coding. Now we need to performace testing using the Jmeter tool. we can't able to test because in my application lot of session variable used, Jmeter tool does not support session variables i think.Check with debugging:1.Assign the session(userName) ="abc" then goes to next page, then check value same session vaule as nothing.

View 1 Replies

How To Do Equality Testing

Jan 18, 2012

I have a Do loop that I want to exit once it goes through without making any changes to an object I created. I figured the best way to do this was to create a temporary copy of the object at the beginning of the loop and then compare that to the actual object at the end of the loop to determine whether any changes were made to it. The problem occurs when variables are accessed and copied by reference. I have tried to use some of the methods such as .Clone and .Equals (maybe I shouldn't be using these, but I didn't see any better built-in methods), but I seem to be doing some stuff wrong. Can somebody give me an example of a good way to copy an object for later equality testing, and how to do the equality testing?

View 5 Replies

IDE :: Testing VB DLLs In VB?

Nov 22, 2010

I was once a VB 6 expert, but it's been a while.I am attempting to create a simple DLL in VB. I created a new WCF Service Library, which is what it looks like I needed to do. I filled out the interface and implemented it. Here's the interface:

<ServiceContract()>
Public Interface AgileApi
<OperationContract()>

[code]....

And attempted to call it, but I get System.EntryPointNotFoundException. I've tried pathing the defined library and copying the dll file into the same place where my EXE is, but no change to the error.

View 6 Replies

Testing An UnhandledException

Aug 26, 2010

I'm writing a piece of code to manage the Unhandled exceptions in my VB application.

I'm using the following code

Partial Friend Class MyApplication
Private Sub MyApplication_UnhandledException(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.ApplicationServices.UnhandledExceptionEventArgs) Handles

[Code]....

View 1 Replies

Testing For FileExists In VB 6.5

Jun 4, 2009

I'm trying to determine if a file "G:myfilesfile1.txt" exists. Using sample code from numerous web searches I can't make any of the FileSystemObjects work. Seems to me the FSO routines are an add-in to VB. If this is so, how do I add them in?

In noncode, this is what I really want to do:

if "file1.txt" exists AND "file2.txt" exists
if "file1.txt" filedate > "file2.txt" filedate
copy "file2.txt" to "fileold.txt"

[Code].....

View 2 Replies

Testing For Null Value?

Aug 13, 2011

when I try to test for a null value using the following:

If not string.isnullorempty(trvlitreadservice.itineraryinfo.reservationitems(zbook).value) then .........

I get an error as soon as it hits a null value. I thought this was supposed to test for a null value yet it throws an error for the very thing I'm testing for.

View 13 Replies

Testing For Time-of-day?

Oct 1, 2011

Private Sub CompareTime3()
Dim NowTime3 As Date
Nowtime3 = (TimeOfDay)

[code].....

In each of the two test sub routines, both if-then statements end up as true and I get both messages boxes displayed ("Timeslot is 16" then "Timeslot is 40" are displayed. One comaprison is AM the other is PM. How can one variable be true for both?

View 8 Replies

Testing In Under Windows 7?

Nov 25, 2009

When i try to run my unit tests in vb.net, visual studio closes down because of an error.I don't know what is causing the problem but i is very frustrating.I have a project running for school that i can't continue because of this problem.When i had visual studio installed under windows vista i didn't got that problem. (same version of visual studio)

View 8 Replies

Testing The .NET Timers?

Apr 25, 2010

Public Class Form1
Dim SW As New Stopwatch
Dim MS As New MenuStrip
Dim Btn As New ToolStripButton

[code]....

View 1 Replies

.net - Static DateTime For Testing?

Dec 11, 2009

We have a DateTime Service that pulls the Database date down when we need to use a Date. Now, If I want to run a test using "Todays" Date using FitNesse, What would be the easiest way of creating a way to have (OurService).CurrentDate be static? We have a control that ads Days,Years, or Months to the current date.. and I would like to be able to test this.

View 1 Replies

Developing A Unit Testing API?

Dec 29, 2010

I have been assigned a task of exploring unit testing using tools available in the market.My question is how do i write an API that would help in writing unit test cases.Example i can use nunit to write something like this to check whether file exists in the given location.

<Test()> _
Public Sub CheckOutputFileInfo()
ReportPath = "D:temp est.txt"

[code].....

View 3 Replies

How To Auto-mated Testing Using Vb

Nov 6, 2011

i need to learn how to do automated testing using visual basic. i already know little bit about visual basic. now how can i do automated testing using vb.any good resource to study about that? even if it a link based resource also fine. and i need your suggestion on how to carry on with testing in visual basic and how to do it well. waiting for your reply.

View 2 Replies

Speed Up The Unit Testing?

Aug 29, 2009

In the project that i;m currently working on i;m not allowed to touch GUI for anyreason that includes program testing. I'm in bit of s frustration becuase prior to this all must application were developed and tested using GUI. Typicvally it wold take a me a week to develop an app now it taking more than that. Especially the TDD with Unit testing. The documentation kills more time too......

View 4 Replies

Sql - .NET, Testing If A Dataset Contains Rows?

Feb 21, 2010

how can I test if a dataset has rows? I'm trying to see if my sql procedure call managed to fill up my dataset.Also, is there an easy way to print the rows to a label?

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved