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.
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.
Share this highlighthttp://www.safaribooksonline.com/a/python-testing-with/20917661/