-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add information about Cocotb tests discovery
- Loading branch information
Showing
5 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Testing features | ||
=================== | ||
|
||
Cocotb tests discovery | ||
----------------------- | ||
|
||
Diplomat automatically discover tests from Cocotb testbenches. | ||
This is done by looking up Makefiles in the workspace tree and then checking if they match a cocotb makefile. | ||
|
||
The tests are then individually discovered and can be run using the built-in "Testing" pane of VS Code. | ||
|
||
|
||
.. figure:: /img/testing_dark.png | ||
:figclass: only-dark | ||
:align: center | ||
|
||
Testing pane view | ||
|
||
.. figure:: /img/testing_light.png | ||
:figclass: only-light | ||
:align: center | ||
|
||
Testing pane view | ||
|
||
.. note:: Only files named ``Makefile`` containing the line ``include $(shell cocotb-config --makefiles)/Makefile.sim`` will be analyzed. | ||
|
||
.. tip:: It is possible to select multiple tests to run and they will be lauched together. |