pytest 13 使用自定義標記mark

前言:   pytest可以規定那些要跑,那些不跑,跑特定的哪些?比如以下的這個例子: #!/usr/bin/env/python # -*-coding:utf-8-*- import pytest @pytest.mark.runtest def test_run(): print("run") def test_not_run(): pass def test_not
相關文章
相關標籤/搜索