Skip to content

Commit

Permalink
styling
Browse files Browse the repository at this point in the history
  • Loading branch information
ajbraus committed May 20, 2015
1 parent 57115a0 commit 8a43c2f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lectures/week-10/_3_wednesday/dusk/ANGULAR_TESTING.md
@@ -1,8 +1,9 @@
# Protractor: AngularJS Integration Tests

> Objective: Be able to design and deploy robust integration tests for an AngularJS project using the Protractor framework
> Objective: Be able to design and deploy integration tests for an AngularJS project using the Protractor framework
## Review - Unit Tests and Integration Tests - 20 min

#### What is Integration testing?

To test only one model method or controller method or module method while ignoring, "stubbing" or "mocking" the rest of your application is called "unit testing."
Expand All @@ -15,11 +16,11 @@ At the very minimum, it is good practice to have a few simple integration tests

**Start with your user narratives**. Even a non-technical person can design integration tests using the "Given-When-Then" model.

**Given** the scenario (e.g. wants to writes a new post, is on home page, is on new messages page, et)
> **Given** the scenario (e.g. wants to writes a new post, is on home page, is on new messages page, et)
**When** the trigger (e.g. clicks on something, submits form, etc)
> **When** the trigger (e.g. clicks on something, submits form, etc)
**Then** what you expect to happen (e.g. an element changes on the screen, an element is added to or removed from an array, words appear on the screen, etc)
> **Then** what you expect to happen (e.g. an element changes on the screen, an element is added to or removed from an array, words appear on the screen, etc)
**Activity: Translate one of your user narratives from last week's projects into integration tests using the Given-When-Then model. How many tests did one narrative break down into? 1? more?**

Expand Down

0 comments on commit 8a43c2f

Please sign in to comment.