Meteor-Community-Packages / Meteor-Community-Packages/template-package

Use meteortesting:mocha to allow headless client tests in CI

Open
#6 6 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
8
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Currently this template packages uses `tinytest` which is easy to use and straight forward. However, if we want to add CI we need to enable headless client tests, which tinytest does not support.

My proposed changes:

Use `metertesting:mocha` in combination with npm `chai` and `puppeteer` to run CI tests.
I would propose a PR, incuding the GitHub actions example.

Contributor guide

Open the contributing guide

Research direction

Start by locating the package's current tinytest setup and checking how tests are run in CI. Evaluate the proposed meteortesting:mocha, chai, Puppeteer, and GitHub Actions combination; done means headless client tests run successfully in CI and the template documents the setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
ci-cd, testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.