GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Link of type test_case not recognized as proper type in generated report · Issue #448 · allure-framework/allure-python

Link of type test_case not recognized as proper type in generated report #448

New issue
Copy link
New issue
Copy link
Closed
#732
Closed
Link of type test_case not recognized as proper type in generated report#448
#732
Copy link
Labels
bugSomething isn't workingSomething isn't workingcontributeCall for a contributionCall for a contributiongood first issueGood for newcomersGood for newcomerstheme:core

Description

@hennadii-demchenko
hennadii-demchenko
opened on Dec 18, 2019
Issue body actions

Bug report:

Steps to reproduce:

  • run simple test:
import allure 

@allure.testcase('TC-1')
def test_foo():
  assert 0
  • generate result: allure generate --clean %alluredir%
  • check links section of generated report

Actual result:

Test case link is not recognized as test management system link, but as plain link

Expected result:

Test case link is recognized as TMS link with appropriate icon (or similar distinctive behaviour)

Additional info and motivation:

Although it is minor issue - this is probably due to unsync with changes in report generator.
If label @allure.link('TC-1', link_type="tms") is provided instead - link is generated correctly.

I guess it might be an easy fix - update allure_commons.types.LinkType.TEST_CASE value to "tms".

Versions:

  • allure-pytest == 2.8.6
  • allure-python-commons == 2.8.6
  • pytest == 5.3.1
  • allure-commandline(2.13.1)

Activity

  1. delatrie
    added
    theme:pytest
    on Dec 5, 2022
  2. delatrie commented on Dec 22, 2022

    @delatrie
    delatrie
    on Dec 22, 2022
    Contributor
    More actions

    Yes, there are only two types of link allure treats specially: tms and issue (there is no test_case).
    So, the link type should be changed, as suggested, from "test_case" to "tms". If someone is willing to contribute, you are welcome!

  3. delatrie
    added
    bugSomething isn't workingSomething isn't working
    good first issueGood for newcomersGood for newcomers
    contributeCall for a contributionCall for a contribution
    theme:core
    and removed
    theme:pytest
    on Dec 22, 2022
  4. hennadii-demchenko commented on Dec 22, 2022

    @hennadii-demchenko
    hennadii-demchenko
    on Dec 22, 2022
    Author
    More actions

    @delatrie, it's a one-liner, really.
    But, ok, no problem, if it is hard for some reason, let me do it for you(it's been only 3 years)

  5. delatrie
    closed this as completedin #732on Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingSomething isn't workingcontributeCall for a contributionCall for a contributiongood first issueGood for newcomersGood for newcomerstheme:core

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.