ewastasiak / frontend-nanodegree-feedreader

Udacity FEND assignment [5/8] – write four suites of Jasmine tests, checking feed reader's functionalities.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UdaciFeeds Jasmine Tests Project Overview

For this project, students are given a web-based application that reads RSS feeds. It requires writing four suites of tests checking feed reader's functionalities.

How to run the UdaciFeeds Jasmine tests?

  1. Download the zipped file from project's repository and unpack it.

  2. Open the index.html file. You are now able to review the Reader's functionality, along with Jasmine test suites.

  3. To run a suite of tests, click on the suite's name:

RSS Feeds

The menu

Initial Entries

New Feed Selection

  1. To run a single test, click on the expectation description of your choice:

(For RSS Feeds suite, testing if all feeds are named and contain urls)

  • are defined
  • have a defined name
  • have a defined url

(For The menu suite, testing menu's visibility and default class)

  • is hidden by default
  • changes visibility after menu icon is clicked

(For Initial Entries suite, testing if there are entries inside the feed container div)

  • there is at least one .entry within .feed container

(For New Feed Selection suite, testing if content changes when user clicks on a different feed from the app's menu)

  • changes content when new feed is loaded
  1. To run all the suites at once, click "run all".

  2. All tests should pass.

How to edit tests?

Edit tests inside the spec file in ./jasmine/spec/feedreader.js, review the Jasmine documentation for more information on how to write your own tests. Make your tests standalone, not dependent on the results of another.

Additional Information


About Udacity and Google Scholarships

Udacity blog entry announcing Google Developer Challenge 2017/2018

Information on all Google Scholarship tracks

Visit Udacity scholarships page

About

Udacity FEND assignment [5/8] – write four suites of Jasmine tests, checking feed reader's functionalities.


Languages

Language:JavaScript 96.5%Language:HTML 1.8%Language:CSS 1.7%