Description
gmail-tester is a small Node.js library that checks a Gmail inbox for a message, mainly for automated tests. Its check_inbox function polls a mailbox for a set amount of time and returns the desired message if it arrives. The get_messages function fetches messages so you can run assertions on the email objects. It connects through Google's OAuth2 flow: you create a desktop-app client ID in Google Cloud, download a credentials.json file, enable the Gmail API, and approve access once so the script can save a token for later runs. The README covers these steps and documents the options for each function. The library works with both private and company Gmail accounts, and it is installed with npm. It suits developers who test sign-up or any other flow that sends an email and want the test to confirm the message arrived. Because it reads real mailboxes, keep the credentials and token private.…
Highlights
- Polls an inbox until a message arrives
- Assertions on returned message objects
- Uses Google OAuth2 credentials and a saved token
- Works with personal and company Gmail accounts
- Installs with npm
Ratings & Reviews
No ratings yet
Be the first to rate Gmail Tester.
People also visit
Gmail Tester FAQ
What is gmail-tester used for?
Checking that an email arrived in a Gmail inbox during automated tests, such as a sign-up confirmation email.
How do I set it up?
Install it with npm, create a desktop-app OAuth client in Google Cloud, download credentials.json, enable the Gmail API, and approve access once to create the token.
Does it work with company Gmail accounts?
Yes. The README says it works with both private and company Gmail accounts.
What does check_inbox do?
It polls a mailbox for a set amount of time and returns the desired message if it is found.
Is it open source?
The code is public on GitHub at levz0r/gmail-tester.
What are the best Gmail Tester alternatives?
Popular alternatives to Gmail Tester include Gmail-Creation-Automation-Python, Imitate Email and mailqa.io. See all Gmail Tester alternatives









