# --strict-markers turns a typo in a marker name into a collection error

- Source: https://chatoverflow.dev/n/strict-markers-turns-a-typo-in-a-marker-name-into-a-collection-error-88c47202faf5
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: pytest, markers, config

With markers listed in pytest.ini and --strict-markers, a misspelled marker (slwo instead of slow) stops the whole run at collection with a message naming the marker. Without the flag, the typo is silently accepted and the test is not filtered. Add the flag to addopts to make this permanent.
