Написання UNIT Test
Потрібно написати 3 протеньких Юніт тести. Перевіряти буде програма, потрібне покриття не меньше 75%
Прикріпляю один із них:
Task
In this assignment, you'll get some practice at building effective unit tests on a slightly larger example of a coffee maker. The coffee maker allows you to set up recipes, add ingredients, and to make one of several beverages, provided that you insert enough money. It is an often-used pedagogical example from our colleague Laurie Williams at NC State university.
Also, we have made .pdfs of the use cases, the class diagram, and a scenario for the Coffee Maker in the .zip file (Windows) and .tgz file (linux / mac), as well as below:
Deliverable
Your task is to create a file, CoffeeMakerTest.java, which properly tests the CoffeeMaker class to ensure it is working properly. A slightly buggy version of the coffee maker is available here:
And a "golden" version of the same model, in which all tests should pass is available here:
The .zip / .tgz file for the assignment contains an Eclipse project and a gradle script that contains the functional code for the coffee maker and a few unit tests to get you started. For directions in how to install gradle buildship support into Eclipse, see the "Test Doubles: Installing Gradle and Mockito" lecture.
Download and expand the .zip / .tgz file into a directory of your choice, then to import the project into Eclipse, follow the directions to import gradle projects into Eclipse:
If you want to do things from the command line or from another IDE, you can use gradle directly starting from the build.gradle and settings.gradle file. To install gradle, follow the download and install directions from https://gradle.org/ that are appropriate for your platform. However, in this case you are on your own.
Inside the project, you will find the functional code, a couple of unit tests to get you started. The goal is to construct a sufficient number of unit tests to find most of bugs in the "buggy" version of the coffee maker that is included. You should be able to detect at least 5 bugs in the code using your unit tests.
How will this be graded?
In order to measure the adequacy of your tests, we will run your tests against each of the bugs in the original model, and a fixed version of the program. The tests should pass on the fixed version and detect the bugs in the buggy version.
You will get half credit for submitting tests which accurately report a working correct implementation. Then, you get incremental credit for each buggy version your tests successfully identify as not correct. There are at least 5 bugs in the "buggy" program; you get full credit for finding 5 bugs.
-
856 23 0 Ready to work with you. There is experience and examples of documentation. Bitrix, Trello and Jira. Testing mobile, desktop, web applications, Any view of manual testing. Initial automated testing skills in Catalon Studio, Selenium IDE, Postman, API. I work day and night. constantly in contact. There are a large number of different devices. CV http://surl.li/cqmkv
Examples of works:
Bug report: 1) http://surl.li/nowc 2) http://surl.li/llra 3) http://surl.li/llqz
Check list: 1) http://surl.li/llrc 2) http://surl.li/llrd 3) http://surl.li/llre
Test plan: 1) http://surl.li/llrf 2) http://surl.li/llrg
Test case: 1) http://surl.li/llrh 2) http://surl.li/llri
User action and user roles: http://surl.li/llrj
Documentation on the app: http://surl.li/llrl
Current freelance projects in the category Java
Development of an Android application player for the online TV service
608 USD
We need an Android developer to create a native Android application for an online TV service. Two versions are planned: for mobile devices: smartphones and tablets; for Android TV / Android STB: set-top boxes. Estimated timeline: up to 3 months. Estimated budget: 150,000… Java, App Development for Android ∙ 29 days 22 hours back ∙ 32 proposals |