-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
List of tests #51
Comments
Something like this: https://docs.pytest.org/en/latest/example/special.html ? If use pytest can use all stand procedures |
BTW: What is the use case for this? |
We are working in a cocotb-test front-end for TerosHDL: https://github.com/TerosTechnology/triel We would like to get two things that we already have implemented with VUnit:
|
There is no explicit list of test it is handled by pytest and there are ways to get it (see: pytest-dev/pytest#1613) some IDE are doing this. Verilog simulator typically does not take VCD output as a parameter it can be defined in Verilog file itself. As far as I can see one would need to do this via define or similar. |
I think that I can't list the cocotb tests with pytest. In this example: https://github.com/qarlosalberto/cocotbExamples/blob/master/tools/cocotb/simple/cocotest_test_adder.py I can discover: def test_adder_vhdl() I would like to be able to define with cocotb-test a different output folder (SIM_BUILD) for each cocotb test (adder_basic_test,adder_basic2_test,adder_random_test). It would also be nice if I could select the tests (TESTCASE) |
You can set For the list of tests you can try to do something like below and parse import py
import pytest
capture = py.io.StdCapture()
pytest.main(['--collect-only', '-q'])
std, err = capture.reset()
print(std.split("\n")) |
Ok! I will try, thank you! |
Did this work? |
I will close. Feel free to re-open if needed. |
Hi!
Is there a way to list the tests? Similar to VUnit:
https://vunit.github.io/python_interface.html
The text was updated successfully, but these errors were encountered: