summaryrefslogtreecommitdiff
path: root/cli/tests/integration/coverage_tests.rs
AgeCommit message (Collapse)Author
2022-04-01chore(tests): use custom temp dir creation for the tests (#14153)David Sherret
2022-03-22chore: replace `.expect("...")` calls with `.unwrap()` in test code (#14081)David Sherret
2022-01-11fix(coverage): merge coverage ranges (#13334)Bartek Iwańczuk
Covered ranges were not merged and thus it appeared that some lines might be uncovered. To fix this I used "v8-coverage" that takes care of merging the ranges properly. With this change, coverage collected from a file by multiple entrypoints is now correctly calculated. I ended up forking https://github.com/demurgos/v8-coverage and adding "cli/tools/coverage/merge.rs" and "cli/tools/coverage/range_tree.rs".
2022-01-10fix(coverage): don't type check (#13324)Bartek Iwańczuk
This commit changes "deno coverage" command not to type check. Instead of relying on infrastructure for module loading in "deno run"; the code now directly reaches into cache for original and transpiled sources. In case sources are not available the error is returned to the user, suggesting to first run "deno test --coverage" command.
2022-01-07chore: update copyright to 2022 (#13306)Ryan Dahl
Co-authored-by: Erfan Safari <erfanshield@outlook.com>
2021-12-23fix(coverage): use only string byte indexes and 0-indexed line numbers (#13190)David Sherret
2021-08-11chore: move test files to testdata directory (#11601)David Sherret
2021-06-27chore: split up integration_tests.rs into separate files (#11131)David Sherret