DevGuli
Navigation Menu
  • Home
  • About
TwitterRss
Home » Posts Tagged "unit testing"
Sat26

Builder pattern and hierarchy of information in unit testing

Posted by chatchai on May 26, 2012 in eng | 0 comments

Builder pattern could help us make the code for preparing testing data more compact and readable. What I personally like is that the pattern could also be used to organize hierarchy of information in a test method

Read More
Sun13

Tradeoff between explicitness and flexibility in unit testing

Posted by chatchai on May 13, 2012 in eng | 0 comments

Sometimes, I find it quite not flexible to write a test that require input string in a specific format e.g. JSON string. I prefer wrapping it in a builder class to sacrifice explicitness for flexibility.

Read More

Designed by Elegant Themes | Powered by WordPress