title: How to implement defects categorization in Allure 2 with Python py.test?
body: <p>In <a href="https://docs.qameta.io/allure/2.0/#_categories" rel="nofollow noreferrer">Allure 2 documentation</a> it's stated that defects may be categorized.
  Artem Eroshenko in his <a href="https://habrahabr.ru/company/jugru/blog/337386/" rel="nofollow noreferrer">Allure 2 presentation</a> also mentioned that for this purpose <code>categories.json</code> config file should be created with regex for categories:</p>
  
  <pre><code>[
    {
      "name": "Outdated selectors",
      "messageRegex": ".*Unable to locate element.*",
      "matchedStatuses": ["broken"]
    },
    {
      "name": "Browser cluster problems",
      "messageRegex": ".*Timed out .* from renderer.*",
      "matchedStatuses": ["broken"]
    }
  ]
  </code></pre>
  
  <p>But there are no details in the docs about actual implementation of this feature. Where is this file should be located? Is this feature implemented in <code>py.test</code> <code>allure 2</code> adaptor?</p>