Skip to content

Latest commit

 

History

History
82 lines (53 loc) · 1.18 KB

README.md

File metadata and controls

82 lines (53 loc) · 1.18 KB

AdventOfCode

A place to store my solutions to Advent of Code problems.

Solution Requirements

  • Automated testing using provided test data
  • Output Part 1
  • Output Part 2

Future

  • Run entire module
  • Entire module has nice output for each year/day

Usage

Using venv

python3 -m venv ./venv_adventofcode
source ./venv_adventofcode/bin/activate

Installing Advent of Code Requirements

pip install -r requirements.txt

Testing

Ensure requirements in place

pip install -r requirements_dev.txt

Tests

Run all tests

pytest

Run all unittest tests

python3 -m unittest discover -s tests/

Run a specific pytest test

Note: Output flavours

pytest tests/year2015/test_day01.py

Run a specific unittest test

python3 -m unittest tests/year2015/test_day01.py

Running

Run entire module

python3 -m adventofcode

Run specific day

python3 ./adventofcode/year2015/day01.py