goncalotomas / FMKe

🛠️ Realistic benchmark for key value stores
Other
23 stars 8 forks source link

users can't run tests on a single database #197

Closed goncalotomas closed 5 years ago

goncalotomas commented 5 years ago

For developers of database drivers it might be extremely important to allow the running of eunit and common test suites against a particular database driver.

Rebar3 already allows running a single test suite, but now the fmke_core_unit_test_SUITE suite runs unit tests for every supported database. What we need to do is export the common functionality into a separate module, then dissolve fmke_core_unit_test_SUITE and create a suite for each database and each data model implementation. Inside each database test suite will be several calls to the previously separated module.

This will allow driver developers to test their implementations on database X by running:

rebar3 ct --suite test/database_x_driver_SUITE.erl

It would make sense that the common code allows for an easy launch of a docker image, to also simplify the code of each database test suite.