tarantool / vshard

The new generation of sharding based on virtual buckets
Other
100 stars 30 forks source link

Rewrite all tests using luatest framework #371

Open Serpentian opened 1 year ago

Serpentian commented 1 year ago

Currently a lot of tests are written using diff style. Let's port them to luatest.

Here're motivation points of doing this:

  1. We need to develop the vshard's testing infrastructure for luatest.
  2. Diff tests require a lot of code duplication.
  3. Core readability is better for luatest tests.

This will dramatically decrease the time needed to write tests in the future.

Serpentian commented 1 year ago

Blocked by #107. Cannot test background fibers without manual grepping of logs until issue 107 is solved.

Serpentian commented 1 year ago

I don't think we should port tap tests to luatest, as first ones work much faster, doesn't require any infrastructure, which could be useful for us in the future, and their code is easy to read.