RaspberryPiFoundation / lesson_format

Lesson formatter
17 stars 28 forks source link

Ability to add “Test Your Project” within a step #142

Closed rikcross closed 5 months ago

rikcross commented 9 years ago

##Test you project {.flag}

So far I've been leaving these out of new projects, as they can only be placed at the end of a section. However, I've been encouraging children to test most new code as it's written, and so it'd be nice to include test points within a step, as well as at the end.

Is this possible? (@andylolz I know you mentioned that it might be this way by design, but it seems odd to have end-of-step test points in a green box but not those within a step.)

andylolz commented 9 years ago

You’re absolutely right! I did say that, and I think I was completely wrong!

You really can’t “test your project” too much, so restricting where you can add that directive is not good.

Would you want the “Test your project” directives within steps to look exactly like the ones between steps?

rikcross commented 9 years ago

i'm not sure you're wrong... it's also that the steps are quite long also, so need lots of test-points!

I think the test points look look great as they are!

andylolz commented 9 years ago

Kk – Cool :) But we agree that test points are good!

Right… Just having a go at this. So, here’s a test block inside a checklist item:

screen shot 2015-02-06 at 17 36 55

I suspect this isn’t what we’re after… Because having a test being part of a checklist item seems a bit weird. Checking the checklist item illustrates the weirdness:

screen shot 2015-02-06 at 17 39 31

I wonder if it’s possible to split activity checklists up a bit? You can have multiple checklists within a step. But perhaps it’s desirable to only show the “Activity checklist” header on the first one? e.g.

screen shot 2015-02-06 at 17 49 26

I guess the spacing needs working out a bit, but I think that last example could work. Wdyt?

rikcross commented 9 years ago

I agree, that last example looks great. :+1: