Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.41 KB

README.md

File metadata and controls

41 lines (30 loc) · 1.41 KB

CMD Challenge

This repo holds the challenges for cmdchallenge.com

 _____ _____ ____     _____ _____ _____ __    __    _____ _____ _____ _____ 
|     |     |    \   |     |  |  |  _  |  |  |  |  |   __|   | |   __|   __|
|   --| | | |  |  |  |   --|     |     |  |__|  |__|   __| | | |  |  |   __|
|_____|_|_|_|____/   |_____|__|__|__|__|_____|_____|_____|_|___|_____|_____|

Contribute

  • Add a new entry to challenges.yml.
    • Pick a unique slug name.
    • Type a description.
    • Add directory and supporting files for the challenge in the var/challenges dir.
    • Add an example solution.
    • Add expected output or tests for the verification (see other challenges for examples).
    • Add your github username or name to the author field.
  • Run make test to make sure your new challenge works with the example.
  • Submit a pull request.

Installation

  • Install docker on your machine
  • pip install -r requirements.txt

Testing

  • make test

Assuming you have docker installed running make test will create a new docker image, load it and run all tests.

  • ./bin/test_challenges <test_name> Test a single challenge using the currently built docker container or all challenges (faster than make test).

Bugs / Suggestions