Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Proc) Test fixtures #1761

Open
mikex-oss opened this issue Dec 3, 2024 · 0 comments
Open

(Proc) Test fixtures #1761

mikex-oss opened this issue Dec 3, 2024 · 0 comments
Labels
dslx DSLX (domain specific language) implementation / front-end enhancement New feature or request

Comments

@mikex-oss
Copy link
Collaborator

What's hard to do? (limit 100 words)

It's useful to separate out tests for independent behaviors. Test procs require a lot of boilerplate in declaring channels, spawning the DUT proc, etc. This boilerplate needs to be added to every test proc, which is nominally fine through copy-paste, but for example, if you add a new channel to the DUT, now you need to separately update N test procs as well.

Current best alternative workaround (limit 100 words)

Copy-paste. For example, if you add a new channel to the DUT, you can update the channel declaration and config for one test proc, then copy-paste that "header" to all the other test procs.

Your view of the "best case XLS enhancement" (limit 100 words)

Some sort of test proc fixture [#fixture]?

Related, #1543 could allow different test procs to only specify the channels they use.

@mikex-oss mikex-oss added dslx DSLX (domain specific language) implementation / front-end enhancement New feature or request labels Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dslx DSLX (domain specific language) implementation / front-end enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant