NCCA uses cookies so that you have the best possible browsing experience on our website. If you agree that we can store and use cookies click 'Accept & Close'.Manage Cookies

PC8 Unit Testing

How to use these resources.

Teachers and students are encouraged to use these resources as platforms to create their own resources, as forms of assessment and in particular as reflection pieces for learning portfolios. The resources are designed specifically to be used by students to record artefacts and reflect on their learning, in particular html and pdf resources.

The Python Lessons and Tasks are designed for students to learn how to program in a practical and task driven style, both individually and collaboratively. In addition, where appropriate, students can undertake a Computational Thinking challenge and a block based coding challenge on editable html platforms, assess themselves with eTask Worksheets, and support and challenge themselves with Python video lessons.


Type of Resource Type ID Overview LO

Programming Concept 8 Unit Testing

Python-logo.jpg Unit Testing Lesson 8.0  pptx Task Driven PYTHON Lesson with embedded lesson plan and LOs

1.23  2.3  2.19  2.22 

CT-Challenge-logo-(1).png Two CT team challenges to design and unit test a suite of 3 programs (modules) pdf (fillable)  Unit test your modules and store your work. Why not create a CT html file for your collaborations?

1.22 - 1.23

2.19 - 2.20

Python-logo.jpg Sample code for the first CT challenge - Design a Palindrome Checker zip Flip the classroom / support the learning 1.1  1.22  2.20

Beginner's Cheat Sheet  

Crash Course Cheat Sheet



Good programming is based on re-usability and resourcefulness.  


The suggested resources below accompany the LOs and complement the lesson. In some cases it will allow LOs to be covered to a greater extent or new LOs to be addressed.

LO Description of Related Web Resource

Further Resources

1.23  2.19

A magic spell needs Unit Testing - A CT Fairytale explanation

1.3  2.3  2.19 Gain more practice on Unit Testing, including the Python test module 

2.21 - 2.22

CS Field Guide Introduction to Testing and did we build what we said we would?   CS-field-Guide.png

4 levels of software testing - Unit -> Integration -> System -> Acceptance

A wikipedia overview of Software Testing Levels and Functional vs Non-Functional Testing 

2.19 - 2.20

Writing error-free code - BBC Bitesize
Errors in Syntax and Logic : The importance of Testing

1.9 An article on the use of Unit Tests in Python in the Biological Sciences