O'Reilly logo
  • Chris Kang thinks this is interesting:

If markers aren’t registered, they won’t show up in the --markers list. With them registered, they show up in the list, and if you use --strict, any misspelled or unregistered markers show up as an error.


Cover of Python Testing with pytest


Because these markers are registered in pytest.init, if you have a miss-spelled marker in your test code, they will be reported as non-registered marker. These can be fixed easily without any concern that they will be missed.