Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

791
Visualizações
How to get PyTest working in Visual Studio

I want to integrate PyTest with Visual Studio so my tests show up in the Test Explorer. So far I have not found any way to do this while some old posts here suggest that people have done it before. As far as I can tell, as this article suggests, someone should develop an adapter interface for PyTest. However, other posts like this show that others were successful in getting this to work. But these two have not worked for me so far. Is there a way to get this working?

over 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

Support for Pytest in Visual Studio has been added on Visual Studio 2019 (16.3 Preview 2)

You have to change your project's test framework by right-clicking it and going to Properties -> Test

You can add a pytest.ini to your project to configure pytest further.

More info from MS themselves: https://devblogs.microsoft.com/python/whats-new-for-python-in-visual-studio-16-3-preview-2/

over 4 years ago · Santiago Trujillo Relatório

0

First install Pytes in your local machine. If your visula studio is already integrated with Python and if your test is also used Pytest then you dont need to worry,your visual studion will use Pytest.

over 4 years ago · Santiago Trujillo Relatório

0

first you have to Ensure that pytest has been installed in the currently configured python environment. And then you have to configure it like following: Command line options for the pytest can be passed by adding the necessary options into the following section in the user or workspace settings file settings.json: Add the options as individual items as shown below:

"python.unitTest.pyTestArgs": [
    "--exitfirst",
    "--verbose"
],

Plz tell me if it is working well

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda