0

I have set/aggregation of tests, I need to run these group of tests in certain order(this is not to manage dependency but for business reasons). How can I specify test execution order using marker? I can not use command line options.

import pytest

@pytest.mark.webtest
def test_send_http():
    pass # perform some webtest test for your app

@pytest.mark.webtest
def test_send_mail():
    pass # perform some webtest test for your app

@pytest.mark.config
def test_something_quick():
    pass

@pytest.mark.ui
def test_something_quick():
    pass

I need to run config, webtest and then UI test. Also, how can you know that each group finished executing?

Is there any other way to achieve this behavior? Thank you

hoefling
  • 59,418
  • 12
  • 147
  • 194
BeHappy
  • 138
  • 2
  • 17

0 Answers0