Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pending tests are displayed as Passed in teamcity UI #65

Closed
papatelst opened this issue Sep 30, 2021 · 1 comment
Closed

Pending tests are displayed as Passed in teamcity UI #65

papatelst opened this issue Sep 30, 2021 · 1 comment

Comments

@papatelst
Copy link

papatelst commented Sep 30, 2021

The problem

Briefly describe the issue you are experiencing (or the feature you want to add)
Tests shown as pending in Build logs are incorrectly displayed as Passed/Successful in Overview and Tests tab in teamcity UI.

Environment

  • What mocha-teamcity-reporter version are you using
  • 4.1.0
  • Version of NPM/yarn etc and Node.js
  • npm version 6.14.11, Node.js version 12.21.0
  • Version of teamcity (If Applicable)
    2020.2.4 (build 86063)
    Cypress version - 8.3.0
  • Grep library version
  • 2.5.3

Details

  • If necessary, describe the problem you have been experiencing in more detail.
  • Such as a stacktrace or error message

We use --env grepTags=@SMOKE along with following parameters with docker run command
cypress run --reporter mocha-teamcity-reporter
Teamcity(TC) buildlog shows tests under Pending and Passing status correctly as shown below
image
However, the TC overview tab shows all Pending tests as passed as seen below
image
The TC Tests tab shows all tests as successful. When I filter by 'ignored' status, it does not return any tests as shown below.
image
Note: TC does not have test filter statuses like Pending, which are mocha specific as mentioned here. The only default filters TC has is 'successful', ''failed' and 'ignored'.

Differences b/w mocha teamcity reporter and cypress using mocha teamcity reporter can be found here.

Expected behavior:
Pending tests from cypress teamcity reporter should display as Ignored tests in Teamcity UI. It should not display under 'Successful'/Passed status on TC UI.

An example test or code sample

  • Please remember that with sample code it's easier to reproduce the bug and it's much faster to fix it.
  • Not needed for feature requests or questions
@papatelst papatelst changed the title Pending tests are displayed as Passed by teamcity UI Pending tests are displayed as Passed in teamcity UI Sep 30, 2021
@fernyb fernyb mentioned this issue Oct 17, 2021
3 tasks
@jamie-sherriff
Copy link
Collaborator

Released in version 4.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants