... Tento Chegar A Ti » 我试着给你 reading test paper » 读测试文件 This is the lonesome » 这是寂寞 ...
基于12个网页-相关网页
例如,实际上如果不允许一个程序从文件系统进行读和写,很难测试它是否正确使用了该文件系统。
For example, it is difficult to test whether a program is making proper use of the filesystem without actually allowing it to read and write from the filesystem.
当一个测试失败或者得到意外的结果时,最好先去读一读日志文件。
Reading the log file is the best starting point for understanding a test that failed or produced surprising results.
但在单元测试中读和写文件会减缓测试,增加更多的复杂性(如创建临时目录和在使用后清除文件)。
But reading and writing files in unit tests slows tests and requires adding more complexity (like creating a temp directory and cleaning up files after use).
应用推荐