Tag Info

New answers tagged

0

What is a good strategy for generating the underlying data for the tests? I would use a modified version of the second approach: Generate fake data such that for each request X there is a well-defined, intentionally constructed set of results Y that will be returned. But instead of querying the database directly your searchengine should be ...


0

It's not clear to me what you try do, it can be one of two very different things that you want to test, and you should not conflate them together: Test that something is not awfully broken with your system - i.e. "write testcases". In this case, it's best if you generate some fake (probably relatively small) corpus of documents that you index, and write ...


1

Short answer: you need both fake data, with well defined input X and output Y real-world data, probably with the modifications you suggested Use the first one especially when doing TDD (as your tag indicated), and after you have the basic algorithm ready, use the second kind of data for integration or acceptance tests. The first kind of tests will ...



Top 50 recent answers are included