Git Product home page Git Product logo

kata-test-driven-development's Introduction

Treinamento TDD

License: MIT

Este repositório é utilizado para simular a criação de um adapter para um cliente http utilizando TDD.

Autores

Sumário

Objetivo

Dado o endpoint users do site jsonplaceholder, crie uma classe Cliente cliente que retorne os seguintes pontos:

  1. Um array com o nome de todos os usuários que tem um email terminado com .biz
  2. Username e company name de todos os usuários na forma de um objeto {user: string, company: string}

Exemplo da saída do jsonplaceholder

[
  {
    "id": 1,
    "name": "Leanne Graham",
    "username": "Bret",
    "email": "[email protected]",
    "address": {
      "street": "Kulas Light",
      "suite": "Apt. 556",
      "city": "Gwenborough",
      "zipcode": "92998-3874",
      "geo": {
        "lat": "-37.3159",
        "lng": "81.1496"
      }
    },
    "phone": "1-770-736-8031 x56442",
    "website": "hildegard.org",
    "company": {
      "name": "Romaguera-Crona",
      "catchPhrase": "Multi-layered client-server neural-net",
      "bs": "harness real-time e-markets"
    }
  }
]

Conteúdos

Este treinamento aborda os seguintes conteúdos:

Instalação

To install this project, run the following commands:

$ git clone https://github.com/lucsimao/testlink-facade-api
  • For npm users
  $ npm install
  $ npm start
  • For yarn users:
$ yarn install
$ yarn start

Testes

To execute this project tests, you must run the following commands:

  • Unit Tests

    $ npm run test:unit
    

    or

    $ yarn test:unit
    
  • Functional Tests

$ npm run test:functional
$ yarn test:functional
  • Lint
$ npm run lint

or

$ yarn lint
  • Style Check npm run style:check` npm run style:fixoryarn style:check yarn style:fix`

  • All Tests ```npm testoryarn test`

Tecnologias

TypeScript NodeJS Jest ESLint Visual Studio Code

In this project, we used the following technologies:

Referências

Cursos

Livros

kata-test-driven-development's People

Contributors

lucsimao avatar

Stargazers

Bruno Afonso avatar

Watchers

James Cloos avatar  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.