Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map code coverage to typescript source files #11

Open
chancehudson opened this issue Jun 8, 2019 · 0 comments
Open

Map code coverage to typescript source files #11

chancehudson opened this issue Jun 8, 2019 · 0 comments

Comments

@chancehudson
Copy link
Member

The current build system takes all typescript files and compiles them into a single javascript file that exports an express server. This single javascript file is tested using a suite of javascript files in /test. The server is loaded into memory and run against a mongodb instance run in an ephemeral docker container.

The results of that are then converted into coverage reports like this that make source analysis easy. Source maps need to be used to map the exported coverage to the new typescript source files.

Coverage Status

Tests can still be developed using npm run coverage as the bug is simply in how webpack transcodes the title file structure I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant