silverfin / silverfin-cli

Command line tool for Silverfin template development
4 stars 1 forks source link

Liquid Tests: Batch testing #113

Open Toby-Masters-SF opened 8 months ago

Toby-Masters-SF commented 8 months ago

Is your feature request related to a problem? Please describe. While there is currently the ability to run single-tests and all tests there is no functionality to run a batch of related tests on a template. For example if a developer wanted to test out the functionality of table, they might wish to run all tests which relate to the table rather than every test or going through the relevant tests individually.

Describe the solution you'd like If possible, would it be possible to add an extra option to the run-test command to run all tests which contain a common string. For example if the nomenclature of a set of tests is unit_3_test_1, unit_3_test_2, unit_3_test_3, unit_4_test_1 etc, running the updated run-test command with the string 'unit3' would run all tests which contained the string 'unit3' i.e. unit_3_test_1, unit_3_test_2, and unit_3_test_3

Describe alternatives you've considered N/A

Additional context N/A