Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

allure-python-commons-test

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

allure-python-commons-test

A collection of PyHamcrest matchers to test Allure adapters for Python test frameworks

  • 2.13.5
  • Source
  • PyPI
  • Socket score

Maintainers
1

Allure Python Testing Utilities

Release Status Downloads

The package contains pyhamcrest matchers to assert the Allure results. They come in handy when you need to test an Allure adapter.

Allure Report logo


The matchers library

Here is the list of available matchers. Refer to https://github.com/allure-framework/allure-python/tree/master/tests for usage examples.

ModuleMatcherCheck
containerhas_containerThe report contains a container that matches all the provided matchers.
containerhas_same_containerThe report contains a container that has all the specified tests as its children
containerhas_beforeThe container has a before fixture with the specified name that matches all the provided matchers
containerhas_afterThe container has an after fixture with the specified name that matches all the provided matchers
contentcsv_equivalentThe string (typically, an attachment's content) contains a CSV document that is equvalent to the provided one
labelhas_labelThe test contains a label with the specified name and (optionaly) the value
labelhas_severityThe test has the specified severity label
labelhas_epicThe test has the specified epic label
labelhas_featureThe test has the specified feature label
labelhas_storyThe test has the specified story label
labelhas_tagThe test has the specified tag label
labelhas_packageThe test has the specified package label
labelhas_suiteThe test has the specified suite label
labelhas_parent_suiteThe test has the specified parentSuite label
labelhas_sub_suiteThe test has the specified subSuite label
reporthas_test_caseThe report contains a test whose fullName ends, or name starts with the specified name. Additionally, the test must match all the provided matchers
reporthas_only_testcasesEach test of the report matches at least one of the provided matchers
reporthas_only_n_test_casesSame as has_test_case but also checks if the number of matched tests is equal to the expected one
resulthas_titleThe test has an expected name
resulthas_descriptionThe test has a description that matches all the provided matchers
resulthas_description_htmlThe test has a descriptionHtml that matches all the provided matchers
resulthas_stepThe test or step has a step with the specified name that matches all the provided matchers
resulthas_parameterThe test or step has a parameter with the specified name whose value matches the provided matchers
resultdoesnt_have_parameterThe test or step doesn't have a parameter with the specified name
resulthas_linkThe test has a link with the expected url, type (if provided) and name (if provided)
resulthas_issue_linkThe test has an issue link with the expected url and name (if provided)
resulthas_test_case_linkThe test has an issue link with the expected url and name (if provided)
resulthas_attachmentThe test or step has an attachment with the expected name and type.
resulthas_attachment_with_contentThe test or step has an attachment with the expected name and type. In addition, the content must match the provided matcher.
resultwith_idThe test or container has the expected uuid
resultwith_statusThe test or step has the expected status
resulthas_status_detailsThe status details of the test or step matches all the provided matchers
resultwith_message_containsThe status details' message contains the provided text
resultwith_trace_containsThe status details' trace contains the provided text
resultwith_excludedThe parameter is excluded from the historyId calculation
resultwith_modeThe parameter has the specified mode
resulthas_history_idThe test has historyId

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc