Timeline for Flat File in a Unit Test
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 16, 2011 at 21:01 | vote | accept | Jon | ||
Jun 16, 2011 at 7:12 | comment | added | Andreas Dolk | +1 for the headline. A flat file is nothing but test data, absolutely acceptable if it is version controlled along with the tests. We just have to make sure that a test is repeatable. | |
Jun 16, 2011 at 3:55 | comment | added | Мסž | At some point I give up and start using real files. But not until I really have to, it's normally possible to do 99% of it using hard-coded data. I think I have two file-based tests. Both are regression tests and I'm testing something like "after 65k iterations something bad happens" or "files larger than 2GB do not work" (what, someone reintroduced the small file size bug? Say it isn't so). | |
Jun 15, 2011 at 23:58 | history | answered | whatsisname | CC BY-SA 3.0 |