iotdb icon indicating copy to clipboard operation
iotdb copied to clipboard

[IOTDB-5021] Using Junit parameterized test to optimize schema IT framework

Open Cpaulyz opened this issue 3 years ago • 0 comments

Description

In order to make the integrate tests cover Schema_File mode and Memory mode, we originally needed to create two classes for each IT, such as IoTDBMetadataFetchIT and IoTDBMetadataFetchSchemaFileIT, which would result in a large number of classes.

This ISSUE introduces a JUnit parametric test approach. An AbstractSchemaIT abstract class is created for all schema test, and its subclasses will automatically run tests in both schema engine modes.

reference: https://blog.csdn.net/w605283073/article/details/80051229 https://stackoverflow.com/questions/27745691/how-to-combine-runwith-with-runwithparameterized-class

image

Cpaulyz avatar Nov 22 '22 13:11 Cpaulyz