Quantcast
Channel: DevGuli » unit testing
Browsing all 2 articles
Browse latest View live

Tradeoff between explicitness and flexibility in unit testing

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.

View Article



Builder pattern and hierarchy of information in unit testing

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...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images