Skip to content

Commit

Permalink
Add information about Cocotb tests discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
suzizecat committed Aug 13, 2024
1 parent f8f672f commit 5054d6c
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion diplomat-lsp-src/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
author = 'Julien FAUCHER'

# The full version, including alpha/beta/rc tags
release = '0.1.1'
release = '0.2.0'


# -- General configuration ---------------------------------------------------
Expand Down
Binary file added diplomat-lsp-src/source/img/testing_dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added diplomat-lsp-src/source/img/testing_light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions diplomat-lsp-src/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Diplomat documentation
:caption: VS Code extension

vscode/development
vscode/test
vscode/sim_debug

.. toctree::
Expand Down
27 changes: 27 additions & 0 deletions diplomat-lsp-src/source/vscode/test.rst
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.

0 comments on commit 5054d6c

Please sign in to comment.