Hello, friends. I am hoping to find out what people are using for their production apps in 2020 for Meteor unit, integration, acceptance, load, etc testing.
Do people feel the best resource for newbies to begin writing tests is the official Meteor doc, meaning: does this doc use people’s preferred packages?
I second @jkuester’s list, those are my favorites.
I wrote one that is kind of useful called hexsprite:mock-mongo-ids
It’s a useful package if you like to use snapshot testing for an array of mongo documents.
This package is useful because it replaces randomized mongo Ids with ones that are deterministic. So multiple test re-runs will always have the same ids.
It’s tightly integrated with meteortesting:mocha at the moment but open to issues / PRs if anyone wants to integrate with something else.
For CI I’m using Google Cloud Build. But someday I could see moving to GitHub actions.
Has anyone experience with puppetry? It is like “recording” the e2e workflows and saves them as code, which you can then use to run the tests. Sound very promising to but it would take a good amount of time to move away from our existing tests.
For E2E testing, I’ve had good luck recently with TestCafe.
I’ve built a sample app for my class called BowFolios that illustrates how to write E2E tests for a Meteor application using TestCafe and integrate it into CI using GitHub Actions.