Ability to run tests for previous stages

When you’re working on a stage that requires significant refactoring, it’s useful to know if your refactor still passes previous tests. A command like codecrafters test --previous would be useful here.


Also useful: Running tests for a specific stage, so that it’s quicker to fix a bug. Something like codecrafters test #5ZB


May I suggest calling this flag --all-previous ? I believe it’s more explicit that it won’t just run the previous test :thinking:

1 Like

Not sure about this, feels a bit verbose :slight_smile: We don’t have a ton of CLI flags at the moment (this’ll be our first), so I don’t think this is a huge issue - will keep an eye out for any users reporting confusion though!

Just a quick update here: We should have support for codecrafters test --previous available this week!