CS360

Copyright @ CMPUT301 - University of Alberta

Lab 8 Participation Exercise

Dr. Suleman Shahid and Dr. Abdul Ali Bangash, Department of Computing Science, LUMS (2026). Dr. Hazel Campbell, Department of Computing Science, University of Alberta (2019, 2023, 2024). Dr. Abram Hindle, Department of Computing Science, University of Alberta (2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023). Alexander Wong, 2019. status: published summary: Lab 8 Participation Exercise

Lab 8 Instructions

In this lab, we will learn about test driven development (TDD) and continuous integration (CI). These are both solutions for solving some common software engineering problems using unit testing. We will go through the slides (updated version) posted below, and go through a live demo in class based on the instructions below to show you how to use TDD and CI.

Lab 8 Slides

Updated Slides

Original Slides

Lab 8 Instructions

Lab 8 Participation Exercise

Lab Exercise

• Implement has city, delete city, and count cities (same as lab 6), however, this time using TDD.

• Create each functionality one at a time, creating (and pushing) a test to create a failing build, before adding functionality to make it pass.

• e.g., create hasCity test, push for failing build, write functionality for hasCity to make passing build. Repeat for delete city and count cities.

Submission

LMS

Due Date

Tuesday 5PM