From 4a2f86261fc15ef958bc4ec1b0258d491e39f2c4 Mon Sep 17 00:00:00 2001 From: zeelrupapara Date: Wed, 2 Oct 2024 11:44:35 +0530 Subject: [PATCH 1/2] feat: add test covrage command in the CONTRIBUTING.md file --- CONTRIBUTING.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 096582e45afa..2c22945be64f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -145,6 +145,21 @@ We want your work to be readable by others; therefore, we encourage you to note python3 -m doctest -v my_submission.py ``` + + Run all tests and see the covrage of the code by following command + ```bash + pytest \ + --ignore=quantum/q_fourier_transform.py \ + --ignore=computer_vision/cnn_classification.py \ + --ignore=dynamic_programming/k_means_clustering_tensorflow.py \ + --ignore=machine_learning/lstm/lstm_prediction.py \ + --ignore=neural_network/input_data.py \ + --ignore=project_euler/ \ + --ignore=scripts/validate_solutions.py \ + --cov-report=term-missing:skip-covered \ + --cov=. . + ``` + The use of the Python built-in `input()` function is __not__ encouraged: ```python From 26cf379ca962caf6ed81b149a25ee96feff5a1f2 Mon Sep 17 00:00:00 2001 From: Jeel Rupapara Date: Wed, 2 Oct 2024 11:54:06 +0530 Subject: [PATCH 2/2] fix: update the word coverage in CONTRIBUTING.md file of test coverage command --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2c22945be64f..136138581d0b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -146,7 +146,7 @@ We want your work to be readable by others; therefore, we encourage you to note ``` - Run all tests and see the covrage of the code by following command + Run all tests and see the coverage of the code by following command ```bash pytest \ --ignore=quantum/q_fourier_transform.py \