Giter Club home page Giter Club logo

kenzie-bandkamp's Introduction

M5 - BandKamp Generic View

Instalação dos pacotes de teste

  • Verifique se os pacotes pytest e/ou pytest-testdox estão instalados globalmente em seu sistema:
pip list
  • Caso seja listado o pytest e/ou pytest-testdox e/ou pytest-django em seu ambiente global, utilize os seguintes comando para desinstalá-los globalmente:
pip uninstall pytest
pip uninstall pytest-testdox
pip uninstall pytest-django

A partir disso, prossiga com os passos:

  1. Crie seu ambiente virtual:
python -m venv venv
  1. Ative seu venv:
# Linux:
source venv/bin/activate

# Windows (Powershell):
.\venv\Scripts\activate

# Windows (Git Bash):
source venv/Scripts/activate
  1. Instale o pacote pytest-testdox:
pip install pytest-testdox pytest-django
  1. Agora é só rodar os testes no diretório principal do projeto:
pytest --testdox -vvs
  1. Caso queira um log mais resumido, basta executar com os testes sem as flags verbose:
pytest --testdox

Rodando os testes por partes

Caso você tenha interesse em rodar apenas um diretório de testes específico, pode utilizar o comando:

  • Rodando testes de users:
pytest --testdox -vvs tests/users/
  • Rodando testes de albums:
pytest --testdox -vvs tests/albums/
  • Rodando testes de songs:
pytest --testdox -vvs tests/songs/

kenzie-bandkamp's People

Contributors

m4y50n avatar

Watchers

 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.