language agnostic - What to unit-test in a file managing application -
Create a GUI file manager that scans the directory structures and provides different operations on it. What parts unit should be tested? I can think of only a very small part, because the GUI unit is not testable (but GUI-tested) and file system stuff is also not unit-tested, since the results may depend on the used file system and File operation is slow, it is very slow for unit-testing.
- You can test the unit of GUI logic if you use MVP -View-Printer) Pattern, in it you unit-test your presenter classes, which are independent of your GUI framework
- You can access the file system which is the unit-test code. File class out / copy. Like fake frameworks are great for this
Comments
Post a Comment