question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Integrate cocotb-test into cocotb

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:14 (12 by maintainers)

github_iconTop GitHub Comments

3reactions
eric-wiesercommented, Nov 19, 2019

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 of cocotb-test into cocotb, in the same was as pytest-cov is not merged into coverage.

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

0reactions
themperekcommented, Mar 9, 2022
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found