Code Monkey home page Code Monkey logo

kanvas's Introduction

M5 - Projeto Final Kanvas

Preparando ambiente para execução dos testes

  1. Verifique se os pacotes pytest, pytest-testdox e/ou pytest-django estão instalados globalmente em seu sistema:
pip list
  1. Caso eles apareçam na listagem, rode os comandos abaixo para realizar a desinstalação:
pip uninstall pytest pytest-testdox pytest-django -y
  1. Após isso, crie seu ambiente virtual:
python -m venv venv
  1. Ative seu ambiente virtual:
# Linux e Mac:
source venv/bin/activate

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

# Windows (GitBash):
source venv/Scripts/activate
  1. Instale as bibliotecas necessárias:
pip install model_bakery pytest-testdox pytest-django

Execução dos testes:

Para rodar a bateria de todos os testes, utilize:

pytest --testdox -vvs

Caso você tenha interesse em rodar apenas um diretório de testes específico, utilize os comandos abaixo:

Accounts:

pytest --testdox -vvs tests/accounts/

Contents:

pytest --testdox -vvs tests/contents/

Courses:

pytest --testdox -vvs tests/courses/

Você também pode rodar cada método de teste isoladamente:

pytest --testdox -vvs caminho/para/o/arquivo/de/teste::NomeDaClasse::nome_do_metodo_de_teste

Exemplo: executar somente "test_user_login_without_required_fields".

pytest --testdox -vvs tests/accounts/tests_views.py::TestLoginAccountView::test_login_without_required_fields

kanvas's People

Contributors

nicegrrrl 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.