pdb icon indicating copy to clipboard operation
pdb copied to clipboard

Improve loading of test configurations

Open jmf-tls opened this issue 2 years ago • 0 comments

Currently the test configurations are stored in a properties file which is parsed each time a test loads those configurations; the configs are then matched with the vendors requested by a test. Instead of loading and parsing the file each time, we could have those configs memoized (see https://github.com/feedzai/pdb/pull/297#discussion_r806100580).

Better yet, we could keep the properties file and load the configs from there just to check if the loading and processing of configs works, but for the majority of the tests we could have the configs in an enum. The tests would then fetch the configs they need by providing the respective enum values.

jmf-tls avatar Feb 15 '22 10:02 jmf-tls