Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default unit testing advice

I'm looking for a basic concept to test classes.

Ideally something equivalent to junit in java, so you can do unit regression
testing easily. I've tried vbLite, but had problems getting it's test runner
form to work in VBA.

Anyone have any favorite test standards or links to articles on the subject
they recommend?

TIA


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 72
Default unit testing advice

You might need the functionallity of VB.NET. Do you absolutely need to
run this code in a macro? VB.NET uses

Try
...
Catch
...
Finally
...
End Try


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default unit testing advice

I would like it Claud, and without needing to go to vb.net.

What you've outlined is net's error handling mechanism, which is pretty much
how java does it. Much better than VBA does, but it's still not unit
testing.

Thanks anyway!

"Claud Balls" wrote in message
...
You might need the functionallity of VB.NET. Do you absolutely need to
run this code in a macro? VB.NET uses

Try
..
Catch
..
Finally
..
End Try


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 205
Default unit testing advice

Hi Eric,

I'm looking for a basic concept to test classes.

Ideally something equivalent to junit in java, so you can do unit regression
testing easily. I've tried vbLite, but had problems getting it's test runner
form to work in VBA.

Anyone have any favorite test standards or links to articles on the subject
they recommend?


Unfortunately, I don't know of any automated/wrapper forms to simplify the
process. I find the best results are obtained by a manual inspection of the
code to test in order to identify some test data that will ensure all the logic
conditions are exercised, then write a wrapper routine to fire all the test
data at the class and check the results.

Regards

Stephen Bullen
Microsoft MVP - Excel
www.oaltd.co.uk


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I set the unit value on the x-axis? Terry Charts and Charting in Excel 1 February 14th 09 07:49 PM
Unit Compatibility kara Excel Discussion (Misc queries) 1 October 27th 08 04:15 PM
Unit Forcast Larry[_4_] Excel Worksheet Functions 1 July 25th 07 01:05 PM
CF for over/under mean unit marcy Excel Worksheet Functions 1 April 21st 05 05:42 PM
Need help with unit formulas Tom Andrews Excel Worksheet Functions 1 December 9th 04 10:29 PM


All times are GMT +1. The time now is 02:26 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"