- Implementation of the shell sort method
- write unit tests for the shell sort method
- write tests for the shell sort method
- Implementation of the command
grep -A NUM -B NUM pattern file
- write unit tests for grep implementation
- write tests for grep implementation
- Tests for programs , when we call them using CLI
'pip install -r requirements.txt --upgrade'
Use python shellsort.py --help
to know how to use it
Use coverage run test_shellsort.py && coverage report shellsort.py
to run unit tests and show code coverage
Use python grep_ab.py --help
to know how to use it
Use coverage run test_grep_ab.py && coverage report grep_ab.py
to run unit tests and show code coverage
Use python run_test.py --show-plan
to print all existed tests wich will be run.
Also can be used parameter group to show tests in test group.
Use python run_test.py
or python run_test.py --group=<group_name>
In first case all tests will be run.
In second case we ca choose which group will be run.
group
parameter may be equal:
- shell - to run all shell sort tests
- shell_positive - to run all shell positive tests
- shell_negative - to run all shell negative tests
- Can be specified name of specific test
- Grep utility is hanging during the run of
grep -A 4 -B 3 '--' test_ok_file_1.txt
- Unit tests for grep_ab failed if pattern == '\-\-'