microsoft / design-to-code

A system of development tools, and utilities used à la carte or as a suite to build enterprise-grade websites and applications.
MIT License
24 stars 6 forks source link

Add integration and E2E testing #67

Open janechu opened 3 years ago

janechu commented 3 years ago

What package(s) should this feature be added to?

@microsoft/fast-tooling @microsoft/fast-tooling-react

Summary

FAST Tooling Testing

General FAST tooling testing strategy

When it comes to testing strategy, the overall philosophy is that unit testing is the first and largest pillar. Since unit tests are the most performant tests, a high percentage of code coverage is expected to be reached for the FAST tooling repository testing in each package. For integration tests and E2E tests, these are more costly. They require a setup of an application to mock a single scenario as an integration test, or a full application to do an E2E test. These should not test edge cases, but should follow the "happy/critical path" that the user is expected to take.

Unit tests

What should be covered:

What technologies should be used:

Integration tests & E2E tests (smoke test)

Setup

The integration and E2E tests should use a single web-component-editor application which includes all available components and services and a list of user interaction workflows.

What should be covered:

What technologies should be used:

Requirements

Tasks needed for completion