-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[WIP] Added testomatio reporter for ui tests #21166
[WIP] Added testomatio reporter for ui tests #21166
Conversation
There should now be an action secret |
If you don't want this PR to be closed automatically in 28 days then you need to assign the label 'Do not close'. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't easily update mocha. Looking at the test output, this now lacks any details which tests are running or failing. If a mocha update is required we might need a separate task to investigate the requirements and update mocha and maybe also chai...
Hi @sgiehl I will add this to backlog to likely prioritise in upcoming sprints. |
This issue is in "needs review" but there has been no activity for 7 days. ping @matomo-org/core-reviewers |
@achakko @DavertMik unfortunately our UI tests screenshots preview service currently can't handle branches with slashes in them, so we don't see what UI tests are failing. I think it'd be best to close this PR and open a new one from a branch that doesn't contain one in its name. Also remove the WIP from the PR title if it's no longer WIP or make a draft one instead. |
@michalkleiner Actually github isn't able to upload any screenshots for PRs coming from forks. So another branch name wouldn't help there. But as this requires a mocha/chai update, we won't be able to merge that anyway. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moving pull request to internal branch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moving pull request to internal branch
Moving pull request to internal branch
089e585
into
matomo-org:dev-17222-testomat-internal
* added testomatio reporter for ui tests * removed api key from code --------- Co-authored-by: achakko <[email protected]>
* [WIP] Added testomatio reporter for ui tests (#21166) * added testomatio reporter for ui tests * removed api key from code --------- Co-authored-by: achakko <[email protected]> * Added testomatio environment variable to matomo-tests.yml * Added testomatio environment variable to matomo-tests.yml * Added testomatio environment variable to matomo-tests.yml * Added testomatio environment variable to matomo-tests.yml * Added mocha-multi-reporter to package.jso to enable mocha reporting for standard spec and testomat, also added to config. * Added mocha-multi-reporter to package.jso to enable mocha reporting for standard spec and testomat, also added to config. * added testomatio reporter in addition regular spec * added testomatio reporter in addition regular spec * Updated one test to ensure it is reported into testomat correctly. * Updated one test to ensure it is reported into testomat correctly. * Added comments for multiple mocha reporters * Adding nyc mocha to report test coverage * Updated multiple mocha reporter comment and added mocha-multi-reporter dev dependency to screenshot-testing/package.json * Added mocha-multi-reporter dev dependency to screenshot-testing/package.json * Added mocha-multi-reporter dev dependency to screenshot-testing/package.json * Added mocha-multi-reporter dev dependency to screenshot-testing/package.json * Added mocha-multi-reporter dev dependency to screenshot-testing/package.json * deleting .npmrc file * updated lockfile * Configured mocha-multi-reporter in config and run-tests files * typo in reporters * Trying to force mocha colours * Trying to force mocha colours * removed deprecated useColors method and kept color method * Updated dependencies in package.json and updated condition to run spec tests locally and testomat in CI * Update screenshot-testing lockfile * Always export reporterOptions from UI config * revert changes to package-lock.json --------- Co-authored-by: Michael Bodnarchuk <[email protected]> Co-authored-by: Marc Neudert <[email protected]> Co-authored-by: sgiehl <[email protected]>
This PR adds Testoamt.io reporter to UI tests
Reporter requires API key to be passed either as
TESTOMATIO
environment variable, so GitHub action should be updated to include that. Or set in configuration as it is shown on this PR.Tests should be executed like this: