How do I test bug fixes and new features in Mautic?
Mautic has a regular release cycle, which means that new bug fixes are published every month, features once a quarter, and major changes which break backwards compatibility are released approximately annually.
Did you know that every single bug fix and feature has to be tested by two people, people like you? The more people we have testing, the quicker we can get things released to the community.
Testing bug fixes and new features can be done in the web browser - no need to know how to install Mautic, apply patches or anything.
Here's a video walk-through and some steps below which explain how to go about testing.
- Sign up for an account at github.com - you will need this to leave comments and report your findings.
- Install the Gitpod extension for your browser - https://www.gitpod.io/docs/configure/user-settings/browser-extension
- Go to https://github.com/mautic/mautic/issues and look at the pinned posts - there will be an Open Source Friday pinned issue with a list of good PRs to test.
- Open the PR you want to test. If it's a bug fix, we need to first replicate the bug, before we test the fix. To do that:
- Go to https://github.com/mautic/mautic and make sure you are on the right branch - usually the default will be the correct one, but if you're testing something in an olrder branch you will find the click on the green 'Gitpod' button in the top right corner.
- Log in with your GitHub credentials
- In the terminal window, once it's finished loading and you see the green text, type
ddev exec bin/console d:f:l
to load sample data for testing. NOTE: this purges the database, never use in production instances!
- Once all the fixtures are loaded, use the icon in the top right corner of the browser preview window to open Mautic in a new tab, and log in with admin/mautic
- Test the bug following the instructions in the pull request or the issue that is associated with it
- Once you've confirmed the bug, where relevant, go to the pull request with the fix (or if it's a feature, you can start here) and click the green Gitpod button to open a Mautic instance exactly as above, but with the bug fix applied.
- Wait for the instance to finish building then type
ddev exec bin/console d:f:l
to load sample data for testing. NOTE: this purges the database, never use in production instances!
- Once the fixtures have finished loading, open the Mautic instance in a new tab using the icon at the top right of the preview browser
- Test the fix - make sure it does what it should, and test anything else that might be impacted by the changes
- Go to the pull request and click the 'files changed' tab
- Click the green button to leave a review - if you're a developer, please also do a code review and leave a comment to say you've also reviewed the code. Make sure you are clear about:
- What you've tested
- What you found
- What you've not tested
- Anything you didn't understand, or couldn't reproduce
- Anything else you think might be relevant
- Don't forget to thank the person who created the pull request ;)
- If you've tested and found it does what it should, and there are no issues, select the Approve radio button. If you found issues, use the 'Request changes' button. Even if it's a really small issue, please use this as it prevents us merging the pull request until those concerns are addressed. If you just want to leave a comment because you couldn't approve or request changes, for example if you couldn't test the PR at all, use the 'leave comment' option.
- Press submit review
- Congratulations! You reviewed your first pull request! And thank you, from the whole community!
Article Number: 50
Author: Mar 17, 2023
Last Updated: Mar 17, 2023
Author: Ruth Cheesley [[email protected]]
Online URL: https://kb.mautic.org/article/how-do-i-test-bug-fixes-and-new-features-in-mautic.html