Integrate cocotb-test into cocotb
See original GitHub issueI would like to know if there is consensus to merge cocotb-tests in current form into cocotb?
In case you would like to see this in should I prepare one big PR or split somehow into smaller pieces?
cocotb-test
provides standard python unit testing capabilities
- compiles the libraries during setup/installation phase using setuptools (separate directory for every simulator)
- uses python to start simulators (remove the need for Makefiles), includes Makefile compatibility mode
- provides simple pytest plugin to merge results
- allow the look and feel of Python unit testing
- allow easy customization of simulation flow
- easy installation (especially on Windows)
- can create wheel package (no need to compile libraries by user)
- allow to use pytest-xdist / pytest-parallel
Somehow releted: #549 #437 #428 #354 #1057 #991 #960 #807 #482 #595 #711 #696 #667 #508 #528 #498 #488 …
Talk from WOSDV 2019: cocotb-test_WOSDV2019.pdf
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:14 (12 by maintainers)
Top Results From Across the Web
Welcome to cocotb's documentation! — cocotb 1.7.2 ...
cocotb has built-in support for integrating with continuous integration systems, such as Jenkins, GitLab, etc. through standardized, machine-readable test ...
Read more >Build options and Environment Variables
The common Makefile cocotb/share/makefiles/Makefile.sim includes the appropriate simulator Makefile based on the contents of the SIM variable. Make Targets .
Read more >Library Reference — cocotb 1.7.2 documentation
This test function will take keyword arguments (for example generators for each of the input interfaces) and generate tests that call the supplied...
Read more >Tutorial: Driver Cosimulation — cocotb 1.4.0 documentation
By integrating systems early, ideally at the block level, it's possible to find bugs earlier in the design process. For any given component...
Read more >Troubleshooting — cocotb 1.7.2 documentation
If things fail in the VPI/VHPI/FLI area, check your simulator's ... To embed a shell within an existing test, where it can inspect...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think there are two different approaches here.
cocotb-test
is a wrapper around the entirety of cocotb, which runs cocotb inside pytest. For this reason, I don’t think we should merge the entirety ofcocotb-test
intococotb
, in the same was aspytest-cov
is not merged intocoverage
.Independently, I’d like to make it possible to host pytest inside cocotb, which ultimately requires making the
RegressionManager
swappable for another test runner. There are a few scheduler refactors needed to make this work, of which the top of the queue is #1173Done in https://github.com/cocotb/cocotb/pull/2634