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.

5 Likes

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

2 Likes

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!

3 Likes

Okay we didn’t ship this on time, but are aaaalmost done - trying to get it out this week!

Oh wait, my bad - this works now! I saw a linear ticket marked as incomplete and jumped the gun :slightly_smiling_face:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.