News Score: Score the News, Sort the News, Rewrite the Headlines

How to write unit tests in C++ relying on non-code files?

Recently we had a coding dojo with my colleagues where we were working on the second part of the Racing Car Katas, called TextConverter. To sum up the problem, the HtmlTextConverter class takes a filename, reads the file into memory and converts its content into a not-very-sophisticated HTML text.The goal is to test the class and potentially refactor it if you find any good reason for that. In my opinion, there are plenty of reasons to refactor this class. The main problem is that it does at lea...

Read more at sandordargo.com

© News Score  score the news, sort the news, rewrite the headlines