THUKEG / saedb

the SAE platform
http://thukeg.github.com/saedb/
11 stars 19 forks source link

Test Framework #57

Closed wweic closed 11 years ago

wweic commented 11 years ago

It's weird when I merge code without test. If it compiles, it passes.

thinxer commented 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.

thinxer commented 11 years ago

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 ?

wweic commented 11 years ago

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).

thinxer commented 11 years ago

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 .

thinxer commented 11 years ago

Implemented with #58.