Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can someone help me with an example of writing a source code and testing the code ? it is said that i must : 1.

can someone help me with an example of writing a source code and testing the code ?
it is said that i must :
1. write a source code
2. write a test to fail the code
3. improve the code
4. write another test to fail the code
5. improve the code again
6. write another test to fail the code again
image text in transcribed
Instructions that cood Neh cutpaselect ONE of the unit test example programs you have seen in the course snakestats, terriblefall cit or norestiforthewiccad. We recommend that you select the one you feel most confident working on. * Write a total of 9 tests, organised into three sets. - Each test set should target one functional element of the program (e.g. an API path, a statistical ost huerope function or a physics simulation function). - Write the code that allows the program to pass your tests. tould not run. valt a furcion If I virits oo find ficioge ovd ti 7 * Gapture screenshoss or console logs of the code before and after it passed the tests, showing the Ghow tre output of the unit testing library. Shorten the output to the most important part, where it lists the value number of tests passed and failed. - Write everything up in a report which you should save oat to PDF format Here is a checklist you can use to ensure you have completed all the tasks

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions