queue icon indicating copy to clipboard operation
queue copied to clipboard

Refactoring of the queue drivers tests structure

Open LeonidVas opened this issue 5 years ago • 3 comments

Now: Many tests of queue drivers have duplicated code Wish: Have some common tests for drivers (remove duplicate code)

Add full testing of a driver API for limfifottl

LeonidVas avatar Feb 28 '20 11:02 LeonidVas

The test case should be either referenced from a certail test file (like 020-fifottl.t) or it should be obvious from names that certain part of cases is in a separate file (say, ddd-driver_api.t). https://github.com/tarantool/queue/pull/106#issuecomment-592453028

LeonidVas avatar Feb 28 '20 11:02 LeonidVas

Have some common tests for drivers (remove duplicate code)

Just a remark, in my library I went a bit further and divided the common tests into non-TTL and TTL-only tests, so I can easily combine them depending on the queue type.

rybakit avatar Feb 28 '20 13:02 rybakit

Have some common tests for drivers (remove duplicate code)

Just a remark, in my library I went a bit further and divided the common tests into non-TTL and TTL-only tests, so I can easily combine them depending on the queue type.

I like the way you think

LeonidVas avatar Feb 28 '20 13:02 LeonidVas