Overview
docs | |
---|---|
tests | |
package |
Note: This is still an early version which can have unwanted side effects like accidentally deleting a wrong file. Use with care.
A command line tool for improving or at least testing your programming knowledge. challenge-me gives you programming exercises on various topics that you have to solve. It can check to see if your solution is correct and then provide you with the next exercise if true. A run could look like this:
$ challenge-me start
Starting first challenge for category array.
$ challenge-me verify
Verifying challenge 1 for category array.
Failure.
Input: 1 2 3 4
Result:
Expected: 1 2 0 0
$ # editing file with own solution
$ challenge-me verify string
Verifying challenge 1 for category string.
Success.
Creating file for next challenge.
The challenges come from different books and websites. You are invited to provide more challenges.
At the moment the solutions have to be in Python. In a future version, support for other languages will be added.
Installation
pip install challenge-me
Documentation
The full documentation can be read at ReadTheDocs. While using the tool you you can also consult the command line help:
$ challenge-me --help
Usage: main.py [OPTIONS] COMMAND [ARGS]...
Command line tool for running programming challenges.
Note: This is still an early version which can have unwanted side effects
like accidentally deleting a wrong file. Use with care.
Options:
--version Show the version and exit.
--help Show this message and exit.
Commands:
skip Skip a challenge.
start Start a challenge.
verify Verify a challenge and on success start the next.
Development
To run the all tests run:
tox
Note, to combine the coverage data from all the tox environments run:
Windows |
set PYTEST_ADDOPTS=--cov-append tox |
---|---|
Other |
PYTEST_ADDOPTS=--cov-append tox |