Git Product home page Git Product logo

lab8's Introduction

Lab8_Starter

By Thet Paing Zaw, Andrew Pham

Check your understanding q's (FILL OUT)

  1. In your own words: Where would you fit your automated tests in your Bujo project development pipeline? (just write the letter)

Answer: It would fit when within a Github action that runs whenever code is pushed. As the bullet journal grows, it would be great to test each push rather than doing manual testing at the end which would be very much time consuming.

  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.

Answer: It seems as the message feature is relying on other components so unit test would not be suited for it. Instead we could test each components in the message feature with small units test and see if they are working properly.

  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

Answer: Yes, because testing a max message length is a small function which is not relying on other components so we could use unit test on that.

  1. What do you expect to happen if we run our puppeteer tests with the field “headless” set to true?

Answer: If it were set to true, the test will be run without chrominum. We will only be able to see the result but not the process.

  1. What would your beforeAll callback look like if you wanted to start from the settings page before every test case?

Answer: We could add a link such as await page.click('img'); to click on the setting image so that we will be starting from the setting page.

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.