behave with cocotb verification framework for hardware verification. #1160
-
I am interested in doing BDD for ASIC and FPGA verification using the cocotb verification framework .I have spent a weekend putting together a quick and dirty feature file to cocotb test file converter. If possible I would like to contribute a patch to behave for supporting cocotb based verification. I had a few questions:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
P1. Dump test scenario as Python code
P2. Parallel runner: There is currently no schedule for this feature, Use one of the existing ones, provide your own parallel test runner or wait until one is provided (whatever suites you best). A test runner is a extension point in P3. NOTES:
SEE ALSO:
|
Beta Was this translation helpful? Give feedback.
P1. Dump test scenario as Python code
The result would be a sequence of function calls with parameters of the step-implementation functions (and the calls to the before/after hooks in between).
P2. Parallel runner: There is currently no schedule for this feature, Use one of the existing ones, provide your own parallel test runner or wait until one is provided (whatever suites you best). A test runner is a extension point in
behave
. Therefore, it is „simple“ to provide your own (and use it).P3.
behave
supportsasync steps
that run in a coroutine. That should simplify the use in your specific case. But the corouti…