Closed wweic closed 11 years ago
How to write test cases for a graph algorithm? Generate a small graph, run the engine, and examine the final graph? We need some examples for application developers.
Should we use a mature testing framework, such a gtest, which is very big (the zipped source is 1.1MB), or use some homebrew solutions, such as something like this: http://leveldb.googlecode.com/svn/trunk/util/testharness.h ?
I am not sure.
I prefer lightweight solution, cause sophisticated tool always brings complexity, maybe not for us, but for other developers. And we don't have to guarantee the exact correctness of algorithm, but for the infrastructure we build: graph, engine.
The test of algorithm should be done manually by the algorithm writer.
Wei Chen ipondering.me
On 2013年4月21日Sunday at 上午10:32, Jianfei Wang wrote:
Should we use a mature testing framework, such a gtest, which is very big (the zipped source is 1.1MB), or use some homebrew solutions, such as something like this: http://leveldb.googlecode.com/svn/trunk/util/testharness.h ?
— Reply to this email directly or view it on GitHub (https://github.com/THUKEG/saedb/issues/57#issuecomment-16714858).
I agree with you. I'll try to use leveldb's test module.
On Sun, Apr 21, 2013 at 11:50 AM, Wei Chen notifications@github.com wrote:
I am not sure.
I prefer lightweight solution, cause sophisticated tool always brings complexity, maybe not for us, but for other developers. And we don't have to guarantee the exact correctness of algorithm, but for the infrastructure we build: graph, engine.
The test of algorithm should be done manually by the algorithm writer.
Wei Chen ipondering.me
On 2013年4月21日Sunday at 上午10:32, Jianfei Wang wrote:
Should we use a mature testing framework, such a gtest, which is very big (the zipped source is 1.1MB), or use some homebrew solutions, such as something like this: http://leveldb.googlecode.com/svn/trunk/util/testharness.h ?
— Reply to this email directly or view it on GitHub ( https://github.com/THUKEG/saedb/issues/57#issuecomment-16714858).
— Reply to this email directly or view it on GitHubhttps://github.com/THUKEG/saedb/issues/57#issuecomment-16715569 .
Implemented with #58.
It's weird when I merge code without test. If it compiles, it passes.