Scripting and Testing

COMP 426 w02.01

Agenda

  1. Thinking: developing v. programming v. coding
  2. Designing tests
  3. npm helper scripts
  4. How to know what you are looking for
  5. WTF is the autograder and how does it work?

How do we think?

How do coders think?

How do programmers think?

How do developers think?

Designing tests

Status Codes


  "scripts": {
    "test": "????????????????????",
    "start": "node server.js"
  },
					

What to look for?

What are the possible interactions?

What are we expecting to happen?

What if something fails?

WTF, autograder?

Demo