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

Report does not show failed tests #5

Closed
ampc opened this issue Jan 30, 2019 · 4 comments
Closed

Report does not show failed tests #5

ampc opened this issue Jan 30, 2019 · 4 comments

Comments

@ampc
Copy link

ampc commented Jan 30, 2019

When executing npm run testcafe-static-analyser the report always show the tests results as passed even when they fail.

static-analyser-report.json

  "name": "I should see first and last name",
            "result": {
              "duration": 0,
              "status": "passed"
            },

console output:

1) AssertionError: expected 'Automated Test' to include 'aaa'

     Browser: Chrome 71.0.3578 / Linux 0.0.0

        10 |/**
        11 | * @step
        12 | * @then("I should see first and last name")
        13 | */
        14 |export default async (_: string) => {
      > 15 |  await t.expect(basePage.usermenuName.innerText).contains('aaa');
        16 |};
        17 |
@hdorgeval
Copy link
Owner

Hi @ampc, testcafe-static-analyser is not a test execution reporter, it is just a source code parser that generates a JSON report and then generates an HTML page from this JSON.

The ambiguity relies on the fact that this tool is based on multiple-cucumber-html-reporter that is a test execution reporter.

If you want to report in HTML, you could try the HTML TestCafe reporter or testcafe-reporter-cucumber-json. Tell me if you want me to integrate such a reporter in this starter project.

@ampc
Copy link
Author

ampc commented Jan 31, 2019

@hdorgeval I see, I would appreciate if you could integrate multiple-cucumber-html-reporter for test execution reports like on this project https://github.com/comsysto/testcafecucumberdemo. It also merges the JSON reports.
I think this feature would help more people using testcafe-starter as a intro to TestCafé. Thank you for your work 👍

example:
http://testcafedemo.comsysto.com:8080/job/testcafe-demo/job/master/26/HTML_20Report_5f04_2f11_2f2018_5f23_3a16_3a20/

@hdorgeval
Copy link
Owner

@ampc , thank you for your feedback. I will follow your suggestions. I will let you know when these features will be integrated in he project

@hdorgeval
Copy link
Owner

@ampc , I just release v4.0.0 of testcafe-starter with HTML reporting

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