Unittest test case only touches the file name
Posted
by
Chen OT
on Programmers
See other posts from Programmers
or by Chen OT
Published on 2014-06-04T12:13:49Z
Indexed on
2014/06/04
15:42 UTC
Read the original article
Hit count: 206
unit-testing
I was told that unittest is fast and the tests which touches DB, across network, and touches FileSystem are not unittest.
In one of my testcases, its input are the file names (amount about 300~400) under a specific folder. Although these input are part of file system, the execution time of this test is very fast.
Should I moved this test, which is fast but touches file system, to higher level test?
© Programmers or respective owner