Coder Social home page Coder Social logo

lab8_starter's Introduction

Lab 8 - Starter

Supratik Banerjee

Lab done individually

  1. Where would you fit your automated tests in your Recipe project development pipeline? Select one of the following and explain why.
  • Within a Github action that runs whenever code is pushed. This is because we want the test to be automated, and every change that might possibly break the code should be automatically tested so ensure code integrity of old code and a systematic way to fix bugs as every change is tested and fixed.
  1. Would you use an end to end test to check if a function is returning the correct output? (yes/no)
  • No, E2E does is not meant to test functions, but rather the entire program, end to end.
  1. Would you use a unit test to test the “message” feature of a messaging application? Why or why not? For this question, assume the “message” feature allows a user to write and send a message to another user.
  • No. "message" is a feature consisting of multiple functions. These functions can be/ and should be tested seperately. Sunch functions will inlude the function to send text, function to send images, and perhaps function to check if the receiver has received and even seen the message. However, if the message feature only had the send function, it would be possible to use unit test to test it. Furthermore, since message can be any string, the test may work with an example string but it is not possible to test for all strings, hence making unit test for such a case, not as useful.
  1. Would you use a unit test to test the “max message length” feature of a messaging application? Why or why not? For this question, assume the “max message length” feature prevents the user from typing more than 80 characters.
  • yes, as max message length is a single and fixed variable to test on.

lab8_starter's People

Contributors

awesomesup avatar camdynr 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.