我正在 pycharm 中使用 pytest 编写测试。测试分为不同的类别。 我想指定某些类必须在其他类之前运行。 我在 stackoverflow 上看到了各种问题(例如指定从文件运行 pytest 测试以及如何在所有其他测试之前运行方法)。 这些和其他各种问题想要选择特定的函数按顺序运行。fixtures据我了解,这可以使用或 with来完成pytest ordering。 我不关心每个类的哪些函数首先运行。我所关心的是课程按照我指定的顺序运行。这可能吗?
fixtures
pytest ordering
python class function pytest pycharm
class ×1
function ×1
pycharm ×1
pytest ×1
python ×1