garageScript / curriculum

GarageScript Curriculum
21 stars 164 forks source link

Feature: Run test on before committing a solution #401

Closed SlyBouhafs closed 8 months ago

SlyBouhafs commented 8 months ago

This PR purpose is to add a feature to block non-working solutions from being submitted by students, it does so by running the tests when a git commit command is run using husky hook on pre-commit.

Another possible solution was to run the tests on submit but it seemed a bit counter intuitive since it will make the UX a bit annoying, having to go through the interactive submit menu only to get your solution refused makes things a bit frustrating.

Closes #391 and https://github.com/garageScript/c0d3-cli/issues/41