You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, all tests that use ObjectStore use LocalFileSystem as it is always available. However, the tests should also be executed on the other types of ObjectStore to ensure they all work as expected by passing the tests. This could be implemented as a function that accepts an ObjectStore and performs the actual tests and which is then called by test functions that each create a different type of ObjectStore. However, this would require a significant amount of boilerplate code for each test and a new test function must added to all of the tests that use an ObjectStore every time support for a new type of ObjectStore is added. Inspired by #[tokio::test], a Procedural Macro should be created to automatically generate a test for each type of ObjectStore, e.g., using an Attribute Macro. An open question is if the macro should check if the object stores are available when compiling so the tests can still be run on platforms without all of the object stores available.
The text was updated successfully, but these errors were encountered:
Currently, all tests that use
ObjectStore
useLocalFileSystem
as it is always available. However, the tests should also be executed on the other types ofObjectStore
to ensure they all work as expected by passing the tests. This could be implemented as a function that accepts anObjectStore
and performs the actual tests and which is then called by test functions that each create a different type ofObjectStore
. However, this would require a significant amount of boilerplate code for each test and a new test function must added to all of the tests that use anObjectStore
every time support for a new type ofObjectStore
is added. Inspired by#[tokio::test]
, a Procedural Macro should be created to automatically generate a test for each type ofObjectStore
, e.g., using an Attribute Macro. An open question is if the macro should check if the object stores are available when compiling so the tests can still be run on platforms without all of the object stores available.The text was updated successfully, but these errors were encountered: