awslabs / amplify-video

An open source Category Plugin for the AWS Amplify-CLI that makes it easy to deploy live and file based streaming video services and integrate them into your Amplify applications.
https://www.npmjs.com/package/amplify-category-video
Apache License 2.0
267 stars 56 forks source link

[RFC] Amplify Video Test Suite #179

Open smp opened 3 years ago

smp commented 3 years ago

As we look at the next stage of maturity for Amplify Video, we have some housekeeping we'd like to address in order to...

This ticket is a call to help us scope the test suite sprint for A/V. Currently we are thinking about 3 key test categories - integration tests, system tests, and usability tests.

Integration Testing

Integration tests should validate that the plugin produces cloud resources that successfully deploy and operate within the context of an Amplify project. Examples of integration tests

System Testing

System tests should validate that the functionality implemented by the entire Amplify Framework work as intended to the end viewer or application consumer (React Component, A/V SDK, etc).

Usability Testing

As a stretch goal, the test suite should deploy and maintain an active website using AWS Amplify and Amplify Video so that maintainers can see the published results of the build process.

nathanagez commented 3 years ago

Hi @smp , I was reading the contribution guidelines and noticed that actually on a pull request, contributors must have to manually run ESLint before submitting their PR (https://github.com/awslabs/amplify-video/blob/master/CONTRIBUTING.md#pull-requests).

It is human to forgot sometimes, adding a tool doing it automatically (using git hooks) could be really useful and time saving. Husky is a great open source library. We can use it to:

Just before submitting the pull request. If it make sens, I can open a PR and set it up.