/algorithms

Examples of data structures and algorithms in Python :computer:

Primary LanguageJupyter Notebook

💻 Algorithms

This repository contains data structures and algorithms in Python.

Tests

Tests were implemented using unittest, a Python Unit Testing framework based in JUnit.

To run all the tests, from /data_structures execute the following command:

python3 -m unittest discover tests -p "*Test.py"

To run a specific test execute:

python3 -m unittest tests.TEST_MODULE

If you want coverage you can use the same commands above, but replacing python3 with coverage run. Coverage analysis is done by using Coverage.py.

If you want to run mutation tests, you can use mutpy by executing the following command:

mut.py \
--target src \
--unit-test tests \
--timeout-factor 1 \
--coverage \
--colored-output

An easier way to executing both coverage and mutation tests is running ./test_runnes.sh.