Using pytest in VS code the basics.

Поділитися
Вставка
  • Опубліковано 21 гру 2024

КОМЕНТАРІ • 15

  • @DreamBigforGod
    @DreamBigforGod 2 місяці тому +1

    thank you bro , I strugled to run pytest for whole week

  • @millymilk18
    @millymilk18 4 дні тому

    Спасибо!!! Отличный ролик!

  • @Lou_Mansfield
    @Lou_Mansfield Рік тому +1

    thanks for the basic video.
    how can people use the Configure test with pytest in VS Code? It is the test beaker icon on the left activity bar. I want to debug specific unit tests within the IDE because the command line is not as useful

    • @pytalista
      @pytalista  Рік тому

      You can speficically target a test in pytest in the comand line. `pytest test_mod.py::TestClass::test_method` docs.pytest.org/en/7.1.x/how-to/usage.html

  • @PrathapHK-v8d
    @PrathapHK-v8d 2 місяці тому +1

    Hi Bro , i got this , thanks for this video and have one doubt like how to run the particular file with showing coverage percentage? as of now if i have 10 files and if i ran single file that coverage is showing for all 10 files , Can you fix this how ?

    • @pytalista
      @pytalista  2 місяці тому

      You can do a coverage report then it will give you the line and file that does not have coverage. install the coverage report and run -> coverage report -m. More info here. -> coverage.readthedocs.io/en/7.6.1/

  • @janemarieestrada5117
    @janemarieestrada5117 Рік тому +1

    I need to create test automation for a specific project, but the website is currently running on the localhost. How can i run the test?

    • @pytalista
      @pytalista  Рік тому

      Hi if you want to do unit testing and are using one of the Python web frameworks they have a client you can use to test behavior's of our app. If you want to do more integration test or load test there are other tools for this.

  • @tomasohara
    @tomasohara 8 днів тому +1

    Very little about VS Code.

    • @pytalista
      @pytalista  7 днів тому

      The basics usually is very little.

    • @tomasohara
      @tomasohara 5 днів тому +1

      @@pytalista Then change the title (i.e., drop VS Code).

    • @pytalista
      @pytalista  4 дні тому

      This is why it is “the basics” not “the complete guide”

  • @rani_venigalla
    @rani_venigalla 27 днів тому +1

    thankyou so much

    • @pytalista
      @pytalista  26 днів тому +1

      You are so welcome!