Skip to content

Test Framework

benliao1 edited this page Aug 3, 2020 · 24 revisions

This page will attempt to discuss the motivation behind the test framework / testing philosophy, the reasoning behind the test naming convention, and how the framework works.

Motivation

Test Naming Convention

How it Works: Big Picture

How it Works: Details

Finding the student_code Folder From executor_client

shm_client Quirks

net_handler_client Output Suppression

Output Capturing When Running Tests

This logic is in test.c, and explains how we are able to record what the test is outputting for comparison after the test has finished while also being able to see the output of the test in real time in the terminal. (This diagram can be found in docs/Test-Output-Redirect-Logic.png)

Test-Output-Redirect-Logic