Build regression testing suite to test compiled distribution files #68
Labels
help wanted
Extra attention is needed
infrastructure
Relating to the development tooling around the project
Milestone
Overview
Currently, the library's unit tests are run on the TypeScript source itself, using ts-node. This is convenient for development, as breakpoints and code coverage can be placed on the TypeScript source files.
These source files, however, are not used by consumers of the library. They use the compiled and transformed distribution files that are generated by Rollup. The problem with testing the TypeScript source only is that no tests are run on these distribution files, which could lead to shipping broken code if there is some bug with the Rollup ecosystem.
There should be a way to test these distribution files. Rather than running the same unit tests, it makes more sense to perform regression tests on the compiled code with games that rely on the Regal Game Library to ensure that they still behave correctly.
Background
Vue performs regression tests in a similar way.
Description
At a high level, the regression testing tool would perform the following steps:
This tool would need to have an API so that it could be included as a step in the Continuous Integration pipeline or called from
regal-cli
.The text was updated successfully, but these errors were encountered: