OlegDB icon indicating copy to clipboard operation
OlegDB copied to clipboard

The Great Testing Refactor

Open qpfiffer opened this issue 11 years ago • 4 comments

Tests need to be split up. We need tests for the frontend. This ticket is for:

  • Where do we put tests?
  • The testing binary needs to have everything split up logically to test components
  • Where do the frontend tests live and what do we write them in?

qpfiffer avatar Oct 07 '14 05:10 qpfiffer

Related to #126 I still want duration in tests if possible, it'll make it easier to find bottlenecks without bothering the buildbot.

My proposal is to still make them a different folder, although a Golang-style "<something>_test.[c|h]" (as @kyleterry proposed on IRC) might be cool, although I fear cluttering of the source/include folder.

As currently decided with @kyleterry, Frontend tests will come in two flavors: binding tests (via go test) and api tests (via shell→curl). We're using #127 for the details on those.

Hamcha avatar Oct 07 '14 06:10 Hamcha

I personally would like to see tests in project root, under test/ or spec/, from there perhaps it could be test/frontend/testserver.c and/or spec/backend/findkey.c, roughly.

I am not familiar with C or Go testing, only Ruby, which would be useless to pull in for testing.

colby avatar Oct 07 '14 18:10 colby

I like the test subfolder idea!

Hamcha avatar Oct 09 '14 12:10 Hamcha

Me too!

kyleterry avatar Oct 09 '14 17:10 kyleterry