Lunderberg commented on a change in pull request #8724:
URL: https://github.com/apache/tvm/pull/8724#discussion_r687016418
##########
File path: docs/dev/pytest_target_parametrization.rst
##########
@@ -160,6 +112,64 @@ applied to them.
def test_function(target, dev, impl):
# Test code goes here
+
+The parametrization functionality is implemented
+on top of pytest marks. Each test function can
+be decorated with `pytest marks <pytest-marks>`_
+to include metadata. The most frequently applied
+marks are as follows.
+
+- ``@pytest.mark.gpu`` - Tags a function as using GPU
+ capabilities. This has no effect on its own, but can be paired with
+ command-line arguments ``-m gpu`` or ``-m 'not gpu'`` to restrict
+ which tests pytest will executed. This should be called on its own,
Review comment:
Definitely an important word, added.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]