![]() You'll have to analyze the HTML and the CSS to determine how the hiding/showing of the menu element is implemented.Write a test that ensures the menu element is hidden by default.What are you describe-ing in this test suite?.Write a new test suite named "The menu".Think about how you wrote the previous test.Write a test that loops through each feed in the allFeeds object and ensures it has a name defined and that the name is not empty.For example, how would you use a for.of loop in this test?.Write a test that loops through each feed in the allFeeds object and ensures it has a URL defined and that the URL is not empty.Return the allFeeds variable to a passing state after reviewing the failed test.See how Jasmine visualizes this failure in your application.Edit the allFeeds variable in app.js to make the provided test fail. ![]() Review the Jasmine documentation if needed.Make sure to read all code comments here as well.This is the file in which you'll be writing your tests.Explore the Jasmine spec file in feedreader.js.How is styling applied to the application? What is all the code in app.js doing? Be sure to read all code comments.Open up index.html and review the functionality of the application within your browser.Familiarize yourself with the starter code.Please review for detailed project requirements. Your project will be evaluated by a Udacity code reviewer according to the Feed Reader Testing project rubric. Development Strategyįor a refresher (or reference) before you begin writing code, we recommend reviewing the content from JavaScript Testing. 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. 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. These will test the underlying business logic of the application as well as the event handling and DOM manipulation. You will learn how to use Jasmine to write a number of tests against a pre-existing application. 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! What will I learn? All the tests initially fail and then they start writing application code to make these tests pass. 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. 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. In this project you are given a web-based application that reads RSS feeds.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |