In this project you are given a web-based application that reads RSS feeds. The original developer of this application clearly saw the value in testing, they've already included Jasmine and even started writing their first test suite! Unfortunately, they decided to move on to start their own company and we're now left with an application with an incomplete test suite. That's where you come in.
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.
Whether you work in an organization that uses test-driven development or in an organization that uses tests to make sure future feature development doesn't break existing features, it's an important skill to have!
You will learn how to use Jasmine to write a number of tests against a pre-existing application. These will test the underlying business logic of the application as well as the event handling and DOM manipulation.
Writing effective tests requires analyzing multiple aspects of an application including the HTML, CSS and JavaScript - an extremely important skill when changing teams or joining a new company.
Good tests give you the ability to quickly analyze whether new code breaks an existing feature within your codebase, without having to manually test all of the functionality.
For a refresher (or reference) before you begin writing code, we recommend reviewing the content from JavaScript Testing. Your project will be evaluated by a Udacity code reviewer according to the Feed Reader Testing project rubric. Please review for detailed project requirements.
index.html
and review the functionality of the application within your browserapp.js
doing? Be sure to read all code commentsstyle.css
. How is styling applied to the application?feedreader.js
allFeeds
variable in app.js
to make the provided test fail
allFeeds
variable to a passing state after reviewing the failed testallFeeds
object and ensures it has a URL defined and that the URL is not empty
for...of
loop in this test?allFeeds
object and ensures it has a name defined and that the name is not empty
"The menu"
describe
-ing in this test suite?app.js
is directly involved with toggling the menu on and off?"Initial Entries"
describe
-ing in this test suite?loadFeed
function is called and completes its work, there is at least a single .entry
element within the .feed
container
beforeEach()
function work?loadFeed()
function in app.js
work? Is it synchronous or asynchronous?"New Feed Selection"
describe
-ing in this test suite?loadFeed
function that the content actually changes
Additionally, note that:
When you're all finished, write a README
file detailing all steps required to successfully run the application. If you have added additional tests, provide documentation for what these future features are and what the tests are checking for.
This repository is the starter code for all Udacity students. Therefore, we most likely will not accept pull requests.
This repository is deprecated; therefore, we are going to archive it. However, learners will be able to fork it to their personal Github account but cannot submit PRs to this repository. If you have any issues or suggestions to make, feel free to: