Skip to content

Commit

Permalink
Merge pull request #10 from neu-se/module02-tdd
Browse files Browse the repository at this point in the history
slides for module2
  • Loading branch information
abhutta0 authored Jan 6, 2024
2 parents e3c0d35 + 371faa4 commit a4f6227
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 1 deletion.
19 changes: 19 additions & 0 deletions Activities/Module02 Activity.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
layout: page
title: Test-Driven Development
nav_exclude: true
---

## Test-Driven Development

This activity is intended to supplement the CS4530 lecture on test-driven development.

### Steps

1. Download and unpack the [starter Code]({{ site.baseurl }}{% link Activities/module02-tdd-transcript-activity.zip %})
2. Write down the testable behaviors for the satisfaction condition: "Add a new grade for an existing student"
3. Identify at least two exceptional conditions or design decisions associated with these testable behaviors
4. Write Jest tests for your testable behaviors
5. Implement a method `addGrade` that passes your tests.

When you are done, submit your work as required by your instructor. This may vary from section to section.
Binary file added Activities/module02-tdd-transcript-activity.zip
Binary file not shown.
Binary file added Slides/Module 02 From Requirements to Code.pdf
Binary file not shown.
Binary file added Slides/Module 02 From Requirements to Code.pptx
Binary file not shown.
2 changes: 1 addition & 1 deletion _data/modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
page: /modules/1-requirements-testing
1b:
name: Typescript & Test Driven Development
page:
page: /modules/2-requirements-to-code
2a:
name: What Makes a Good Test Suite?
page:
Expand Down
32 changes: 32 additions & 0 deletions lectures/l2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
layout: module
title: "2 - From Requirements to Code"
permalink: /modules/2-requirements-to-code
parent: Modules
nav_order: 2
lessons:
- title: From Requirements to Code
pdf: "Module 02 From Requirements to Code.pdf"
ppt: "Module 02 From Requirements to Code.pptx"

---
### Learning Objectives:
In this lecture, you will learn to:

* Explain the basics of the Test-Driven Design
* Develop simple applications using Typescript and Jest
* Learn more about Typescript and Jest from tutorials, blog posts, and documentation

### Important Dates:
* Individual Project Deliverable 1 **Due Wednesday, Sep 20 by 11am**{: .label .label-red }

{% include lesson.html %}

### Activity
* [TDD Activity Handout]({{site.baseurl}}{% link Activities/Module02 Activity.md %})

### Tutorials
* [Writing Tests with Jest]({{site.baseurl}}{% link tutorials/week1-unit-testing.md %})

### Resources
* [Podcast: Kent Beck on Software Engineering Daily](https://softwareengineeringdaily.com/2019/08/28/facebook-engineering-process-with-kent-beck/) - An interview with Kent Beck (creator/evangelizer of TDD) about his time at Facebook and the relationship between Facebook and TDD

0 comments on commit a4f6227

Please sign in to comment.