Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 8. Unit Testing with Test::Class > Marking Tests as TODO with Test::Cla...

8.5. Marking Tests as TODO with Test::Class

If you've written the tests for a class but you haven't yet written the implementation, mark the tests as TODO. That way, everyone will know that you expect them to fail. If they succeed, it'll be a nice surprise.

8.5.1. How do I do that?

Test::Class allows you to mark tests in the same manner as tests using Test::More. Simply localize the $TODO variable with the reason why you're putting them off.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial