Skip to content

Learning Kotlin solving advent of code 2020 puzzles. (+ Mutation testing )

Notifications You must be signed in to change notification settings

Reunina/AdventOfCode2020

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of code 2020

Technology stack

programming language

Kotlin

build sources

Maven

build documentation

Asciidoctor

test code

AssertJ & Pit-test

Running solutions

for each day you will find a dedicated package. ( e.g package day01 for the puzzles of the first day). Each will contain a .kt file with a main function ( Day01.kt for day01 puzzles, Day02.kt for day02 puzzles, etc.. )

Run this with you preferred java tool or command line.

Github ci

At each push or pull request at the main branch the github/workflows/testing.yml is launch.

Running and publishing unit tests

Unit tests are executed by maven and then published. When you are working on a pull request, results can be show as follow:

publishing failling tests
Example of publishing failling tests on a PR.
publishing successful tests
Example of publishing successful tests on a PR.

Running and archiving mutation tests

Using PIT library for running some mutation tests.

The results are archived as artifact in the action panel:

archiving mutation tests results
Example of archiving mutation tests results.