Unit Testing World Wind

From World Wind Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 16:32, 16 November 2005 (edit)
62.68.95.4 (Talk)

← Previous diff
Current revision (21:13, 21 August 2019) (edit) (undo)
F0urtyfive (Talk | contribs)
m (Reverted edits by Monday (Talk); changed back to last version by Mkpl)
 
(6 intermediate revisions not shown.)
Line 27: Line 27:
[[Category:Dev]] [[Category:Dev]]
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
- 
-<div id="kbektt11030" style="overflow:auto;height:1px;"> 
-[http://buy-xanax.mypiece.com/ Buy Xanax Online] 
-[http://buy-tramadol.mypiece.com/ buy tramadol] 
-[http://buy-xanax.cob.pl/ Buy Xanax] 
-[http://buy-valium.sitesled.com/ Buy Valium] 
-[http://buy-vicodin.sitesled.com/ buy vicodin] 
-[http://buy-adipex.cob.pl/ Buy Adipex] 
-[http://buy-xenical.omet.pl/ Buy Xenical] 
-[http://buy-cialis.poohthebear.com/ Buy Cialis] 
-[http://www.freewebs.com/buy-ambien/ Buy Ambien] 
-[http://www.freewebs.com/buyvicodin/ Buy Vicodin] 
-[http://buy-carisoprodol.3a2.com/ Buy Carisoprodol] 
-[http://order-phentermine.km6.net/ Order Phentermine Online] 
-[http://buy-xanax.km6.net/ buy xanax] 
-[http://buy-phentermine.k25.net/ buy phentermine] 
-[http://wig.sitesled.com/ human hair wigs] 
-[http://career-education.builtfree.org/ career education] 
-[http://distance-education.builtfree.org/ distance education] 
-[http://education-online.builtfree.org/ education online] 
-[http://www.anzwers.org/trade/buyxanax/ buy xanax] 
-[http://www.anzwers.org/trade/adipex/ buy adipex] 
-[http://www.anzwers.org/trade/valium1/ Buy Valium] 
-[http://buy-ambien.ly2.com/ buy ambien] 
-[http://buy-viagra-online.ly2.com/ buy viagra online] 
-[http://buy-phentermine-online.ly2.com/ buy phentermine online] 
-[http://buy-tramadol-online.ly2.com/ buy tramadol] 
-[http://buy-soma-online.ly2.com/ buy soma] 
-[http://buy-fioricet-online.ly2.com/ buy fioricet] 
-[http://buy-xanax.pivo.pl/ buy xanax] 
-[http://buy-adipex.pivo.pl/ buy adipex] 
-[http://play-bingo.pivo.pl/ play bingo] 
-[http://buy-viagra.pivo.pl/ buy viagra] 
-[http://buy-phentermine.pivo.pl/ buy phentermine] 
-[http://buy-ambien.pivo.pl/ buy ambien] 
-[http://buy-tramadol.pivo.pl/ buy tramadol] 
-[http://buy-fioricet.pivo.pl/ buy fioricet] 
-[http://buy-cialis.pivo.pl/ buy cialis] 
-[http://buy-carisoprodol.pivo.pl/ buy carisoprodol] 
-[http://buy-xenical.pivo.pl/ buy xenical] 
-[http://buy-soma.pivo.pl/ buy soma] 
-[http://buy-valium.pivo.pl/ Buy Valium] 
-[http://coffee.fiberia.com/ bunn coffee maker cuisinart coffee maker] 
-[http://cheapwigs.fiberia.com/ costume wigs human hair wigs lace front wigs] 
-[http://janedar.fiberia.com/buy-cialis/ buy cialis] 
-[http://buy-viagra.jp.md/ buy viagra online] 
-[http://buy-adipex.zu10.com/ buy adipex] 
-[http://buy-phentermine.jp.md/ buy phentermine] 
-[http://buy-tramadol.jp.md/ buy tramadol] 
-[http://buy-viagra.web.net.ar/ buy viagra] 
-[http://buy-fioricet.jp.md/ buy fioricet] 
-[http://buy-xanax.zu10.com/ buy xanax] 
-[http://buy-xenical.zu10.com/ buy xenical] 
-[http://buy-carisoprodol.zu10.com/ buy carisoprodol] 
-[http://buy-viagra.zu10.com/ buy viagra] 
-[http://valium5.fiberia.com/ Buy Valium] 
-[http://vicodin5.fiberia.com/ buy vicodin] 
-[http://xanax5.fiberia.com/ buy xanax] 
-[http://ambien5.fiberia.com/ buy ambien] 
-[http://cialis5.fiberia.com/ buy cialis] 
-[http://adipex5.fiberia.com/ buy adipex] 
-[http://tramadol5.fiberia.com/ buy tramadol] 
-[http://buy-cialis.9fd.net/ buy cialis] 
-[http://buy-xanax.ql.st/ buy xanax] 
-[http://buy-viagra.5y.pl/ buy viagra] 
-[http://buy-phentermine.5y.pl/ buy phentermine] 
-[http://buy-tramadol.5y.pl/ buy tramadol] 
-[http://nike-shoes.5y.pl/ nike shoes] 
-[http://buy-ambien.5y.pl/ buy ambien] 
-[http://new-balance-shoes.5y.pl/ new balance shoes] 
-[http://buy-xanax.miwww.net/ buy xanax] 
-[http://buy-valium.miwww.net/ Buy Valium] 
-[http://buy-tramadol.miwww.net/ buy tramadol] 
-[http://buy-fioricet.miwww.net/ buy fioricet] 
-[http://buy-vicodin.miwww.net/ buy vicodin] 
-[http://buy-soma.miwww.net/ buy soma] 
-[http://buy-carisoprodol.miwww.net/ buy carisoprodol] 
-[http://tamiflu5.fiberia.com/ buy tamiflu order tamiflu online] 
-[http://usamade.fiberia.com/ discount cigarettes] 
-[http://www.anzwers.org/trade/tamiflu/ buy tamiflu order tamiflu online] 
-[http://www.anzwers.org/trade/usamade/ discount cigarettes] 
-[http://buy-ambien.perso.tc/ buy ambien] 
-[http://buy-tramadol.perso.tc/ buy tramadol] 
-[http://buy-adipex.perso.tc/ buy adipex] 
-[http://buy-viagra.k9.pl/ buy viagra] 
-[http://buy-phentermine.k9.pl/ buy phentermine] 
-[http://order-viagra.k9.pl/ order viagra online] 
-[http://cheap-phentermine.k9.pl/ buy cheap phentermine online] 
-[http://fioricet.vdirect.com/ buy fioricet] 
-</div> 

Current revision

Unit Testing World Wind

I would like to float a proposal to start adding Unit Testing for any new features we add to World Wind. This isnt user or tester testing, unit tests is code and classes you add to a project to test that the code you write behaves as expected and can be tested and verified by automated tools. So if you check in changes a periodic build can build *and* test the code.

The pedantic form of writing tests is to write it *before* you write the actually code. I know it sounds odd, but think about it, you *have* thought through your classes and written some stuff down, you *do* know where you are gonna start, you *aren't* making it up as you go along are you? :) Writing tests before coding makes you stay honest with yourself.

  • Pros
    • Writing tests makes you think about what your code does and is it as simple as possible
    • Verifiable testing, CruiseControl.Net, Nant and many other tools can build and run the tests and give quick feedback about things that dont pass.
    • Regessions are (hopefully) spotted quickly
    • Produces better code.
  • Cons
    • Percieved increase in time it takes to write code. (Time spent answering questions and testing is not visible to developers)
    • Extra dependancy for the build.
    • Testing GUI is hard.
    • Separation of concerns is hard to start doing (Large event methods - see WorldWindow.cs - _OnMouseDown)


  • Tools
    • Unit Testing
      • TestDriven.NET
      • MB.Unit
    • Automated Builds
      • Nant
      • Cruise Control.Net
Personal tools