Skip to content

tommagnusson/intro-to-programming-tested-labs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction to Programming - Abridged Labs with Testing

This repository implements at least partial solutions to most of the labs in introduction to programming, as well as pytest unit tests.

Author: Tom Magnusson - tommagnuss@gmail.com

Advisor: Brian Gormanly, Marist College Faculty

Link to faculty presentation.

Link to the post presented at the honors thesis exhibit.

Dependencies:

Included in each lab folder is a README.md which explains how my testing contributes to the labs, or an explanation of why there are not tests if that is the case.

Running Tests

Run program.py's test in labN folder:

pytest labN/program_test.py

Run all tests:

pytest

Most testing-friendly labs

Lab 4 (account generator) and Lab 7 (tic tac toe) are two excellent candidates for testing.

Lab 4's README.md explains a recommended testing paradigm called Given-When-Then.

Lab 7 include lots of tests that clearly demonstrate why manual testing would be way slower than writing unit tests.

Pytest resources

About

Marist Introduction to Programming Labs with Pytest Tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages