[enhancement] Support multiple test cases for a single test proc #1581
Labels
dslx
DSLX (domain specific language) implementation / front-end
enhancement
New feature or request
testing
Test-infrastructure related
What's hard to do? (limit 100 words)
When using test procs, it is not possible to run different test cases, that will be eventually listed as separate entries in the report without duplicating test procs. It would be helpful to describe multiple tests cases that can reuse the same
config()
function.Current best alternative workaround (limit 100 words)
Currently, the user has to either put all the tests in the single
next()
function, making individual test cases indistinguishable or create multiple test procs, which leads to significantly longer code.Your view of the "best case XLS enhancement" (limit 100 words)
It would be great to define many
next
functions, preferably with some additional information that will help identify the test cases in the test summary. Some changes to the procs syntax were proposed in this comment, but the example given doesn’t show if specifying multiple test cases for the same design would be possible.Here are some options for adding multiple test cases to DSLX:
next()
functionOne of the challenges for enabling multiple test cases is how to write the
init()
function for each of them. However, I believe that in generalstate
for test procs is not required at all, since thenext()
function can be replaced with a for loop.The text was updated successfully, but these errors were encountered: