slige/surveys/code_coverage
2024-11-26 14:32:21 +01:00
..
.vscode garbage collector heap 2024-11-26 14:32:21 +01:00
.gitignore add surveys 2024-11-21 16:16:44 +01:00
deno.jsonc add surveys 2024-11-21 16:16:44 +01:00
deno.lock add surveys 2024-11-21 16:16:44 +01:00
program_1_test.ts add surveys 2024-11-21 16:16:44 +01:00
program_1.ts add surveys 2024-11-21 16:16:44 +01:00
program_2_phami_test.ts tdd survey 2024-11-22 12:37:38 +01:00
program_2_teis_test.ts tdd survey 2024-11-22 12:37:38 +01:00
program_2_test.ts add surveys 2024-11-21 16:16:44 +01:00
program_2.ts add surveys 2024-11-21 16:16:44 +01:00
README.md add surveys 2024-11-21 16:16:44 +01:00
survey.ods add surveys 2024-11-21 16:16:44 +01:00

Code coverage survery

Test

deno task test-coverage

Instructions

Write 1) a test inside program_1_test.ts, testing playerFromUnknown and 2) a test inside program_2_test.ts, testing stringToInt. The goal should be to test as much as the code as possible, meaning every branch and every line of code should be tested.

The tests are done, when the participant is satisfied (or the time is up). Afterward, generate a coverage report using the following command.

deno task test-coverage

Note down the branch and line coverage percentages of each file.