A simple code coverage tool which is built for automating white box testing for typescript codes. This is a basic tool which only works for simple typescript functions which have number, string, boolean and array as function parameteres.
- Paste your typescript code in the textbox.
- Click Submit button.
- A spinner will be displayed while the tool is generatig test cases and coverage report.
- After a while a download button will be displayed.
- Click the download button to download the coverage report(zip file).
- Locate the file in your downloads folder and unzip it.
- Inside the zip file go to lcov-report folder.
- Open index.html file to view the report.
- Click on code.ts to further expand the report and view which lines are executed and which are left unexecuted.
- Clone this repository.
- In your terminal type "npm start" to start the project on your localhost.
- Now, clone the backend of this project https://github.com/alicodes02/Code-Coverage-Tool-Back-End.git.
- Run the backend by running "npm start" command in the terminal.
- Now, you can send your code to the backend easily.
- View the test cases at backend in tests/generated-tests.spec.ts file.