Created
October 13, 2019 09:59
-
-
Save cloudcalvin/217683277bd61ea4e6b8e73dae812bc0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # == Introduction | |
| # | |
| # Unit testing is making waves all over the place, largely due to the | |
| # fact that it is a core practice of XP. While XP is great, unit testing | |
| # has been around for a long time and has always been a good idea. One | |
| # of the keys to good unit testing, though, is not just writing tests, | |
| # but having tests. What's the difference? Well, if you just _write_ a | |
| # test and throw it away, you have no guarantee that something won't | |
| # change later which breaks your code. If, on the other hand, you _have_ | |
| # tests (obviously you have to write them first), and run them as often | |
| # as possible, you slowly build up a wall of things that cannot break | |
| # without you immediately knowing about it. This is when unit testing | |
| # hits its peak usefulness. | |
| # | |
| # Enter Test::Unit, a framework for unit testing in Ruby, helping you to | |
| # design, debug and evaluate your code by making it easy to write and | |
| # have tests for it. | |
| # | |
| # | |
| # == Notes | |
| # | |
| # Test::Unit has grown out of and superceded Lapidary. | |
| # | |
| # | |
| # == Feedback | |
| # | |
| # I like (and do my best to practice) XP, so I value early releases, | |
| # user feedback, and clean, simple, expressive code. There is always | |
| # room for improvement in everything I do, and Test::Unit is no | |
| # exception. Please, let me know what you think of Test::Unit as it | |
| # stands, and what you'd like to see expanded/changed/improved/etc. If | |
| # you find a bug, let me know ASAP; one good way to let me know what the | |
| # bug is is to submit a new test that catches it :-) Also, I'd love to | |
| # hear about any successes you have with Test::Unit, and any | |
| # documentation you might add will be greatly appreciated. My contact | |
| # info is below. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment