Explore our extensive collection of courses designed to help you master various subjects and skills. Whether you're a beginner or an advanced learner, there's something here for everyone.


Learn live

Join us for our free workshops, webinars, and other events to learn more about our programs and get started on your journey to becoming a developer.

Upcoming live events

Learning library

For all the self-taught geeks out there, here is our content library with most of the learning materials we have produced throughout the years.

It makes sense to start learning by reading and watching videos about fundamentals and how things work.

Search from all Lessons

LoginGet Started
← Back to Lessons
  • learnpack

Edit on Github

Grading Learnpack Tutorials

Validate your Unit Tests

Auto-graded exercises are one of the key features offered by LearnPack, it allows the learners to have instant feedback on what they’re learning. You can create the tests using Jest (For html, css, react, javascript, dom) and pytest (Python).

With LearnPack you can create tutorials with different grading modes, these are the grading modes you can use:

  1. Incremental: In this grading mode of exercises, you can’t go to the next exercise until you pass the test of the current one. It is incremental, so further exercises require the knowledge of previous exercises. This grading mode is good for tutorials. incremental-example

  2. Isolated: In the isolated mode each exercise is independent so you can go to any exercise in the order you prefer. The latest exercises don’t need earlier exercises’ knowledge.

  3. No Grading: These exercises aren’t graded, therefore they don’t have tests.

Validate your Unit Tests

The learnpack test command allows you to audit each of the exercises' tests. This can be done if you have a solution.hide file on each exercise, that way the test command will check if the exercises' tests will assert against the solutions.