google / google/xls

(Proc) Test fixtures

Open
#1,761 0 comments 0 reactions 0 assignees View on GitHub
dslx enhancement testing
Dominant language
C++
Stars
1.9k
Forks
283
Avg merge
2d 10h
Merged PRs (30d)
135

Description

### 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.