TODO List
  • Call test method
  • Call 'setUp' before calling test method
  • Call 'tearDown' after calling test method
  • Call 'teatDown' whether test is passed or  not
  • Execute multiple test cases
  • Print collected test case result


First, we have to write test code in the TDD premise. I wrote these codes on main function in TDD_Practice.m file

WasRun* test = [[WasRun alloc] initWithName: @"testMethod"];

NSLog(@"%@", [test wasRun]);

[test testMethod];

NSLog(@"%@", [test wasRun]);


of course, there is no definition about 'WasRun', this routine is failed. We need to make WasRun class... at tommorrow -_-;;
Posted by yunseong
TAG