Code Monkey home page Code Monkey logo

feedreader-tdd's Introduction

Test-Driven Development: RSS Feed Reader

Created March 2017.

Project Overview

This project is a web-based application that reads RSS feeds. The original developer of this application has included Jasmine, however the test suite was incomplete. This file includes the completed version of the test suite.

What is "test-driven development"?

Testing is an important part of the development process and many organizations practice a standard of development known as "test-driven development". This is when developers write tests first, before they ever start developing their application. All the tests initially fail and then they start writing application code to make these tests pass.

How to Use

  • Download the repo and open index.html on a browser.
  • Default screen displays 10 recent posts from Udacity Blog's RSS feed
  • Scroll to the bottom to see Jasmine tests and test results
  • Click on the menu icon to see other feeds included in this project
  • Click on any other feed and see recent posts from RSS feeds, along with Jasmine tests and test results at the bottom of the screen.

Test Suites in This Application:

(See file Jasmine/spec/feedreader.js for the code.)

RSS Feeds:

  • A list of RSS feeds is defined.
  • Each RSS feed has a name and a url.

The Menu:

  • The menu is hidden by default.
  • The menu changes visibility when the menu icon is clicked.

Initial Entries:

  • The initial entries from the loaded RSS feed should contain at least one entry.

New Feed Selection:

  • When a different RSS feed is selected from the menu, the content on the page should update.

Requirements for the Test Suite:

  • No test should be dependent on the results of another.
  • Callbacks should be used to ensure that feeds are loaded before they are tested.
  • Error handling should be implemented for undefined variables and out-of-bound array access.
  • All tests should pass.

feedreader-tdd's People

Contributors

burieberry avatar prather-mcs avatar walesmd avatar susansmith avatar hkasemir avatar nicolasartman avatar skh avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.