Productive pytest with PyCharm

Поделиться
HTML-код
  • Опубликовано: 9 июн 2024
  • Testing is a major part of Python development and pytest has become the leading testing framework. Brian Okken, author of the recent book Python Testing with pytest and host of the Test and Code podcast, helps you “level up” your pytest skill.
    This webinar is a follow-on to the introductory Visual Testing with PyCharm Oct 2017 webinar with Kenneth Love.
    Brian will show:
    * Good style for asserts
    * Refactoring verbose tests into fixtures and conftest.py files
    * Refactoring fixtures
    * Using parameterize to repeat similar tests
    * Other uses of markers
    * Coverage
    * Good TDD style
    Along the way, Brian will use the productive PyCharm testing features from the first webinar.
  • НаукаНаука

Комментарии • 22

  • @chrishuang-leaver6719
    @chrishuang-leaver6719 5 лет назад +43

    Starts at 2:25

  • @donha475
    @donha475 4 года назад +1

    Thank you - so useful! :) parameterize... mind blown... and the auto test run... and a lot of other useful jems! :)

  • @An_Otter_Dennis
    @An_Otter_Dennis 5 лет назад +1

    Noob here, I did not clone the repo and tried to do it by myself with the setup and missed the "from setuptools import setup, find_packages " in the setup.py

  • @arundhingra4536
    @arundhingra4536 4 года назад

    Very informative webinar :)

  • @AfikAfikAfik
    @AfikAfikAfik 4 года назад +1

    I'm getting an error when trying to run the hello world test.
    Traceback (most recent call last):
    File "C:\Program Files\JetBrains\PyCharm Community Edition 2019.2\helpers\pycharm\_jb_pytest_runner.py", line 4, in
    import pytest
    ModuleNotFoundError: No module named 'pytest'
    Process finished with exit code 1
    Empty suite
    Any suggestions?

    • @JetBrainsTV
      @JetBrainsTV  4 года назад

      Please try posting to our community forum.
      intellij-support.jetbrains.com/hc/en-us/community/topics/200379535-PyCharm

  • @slymm619
    @slymm619 6 лет назад

    How'd he set up the functions on one side of the pane and tests on the other side? @16:04 mark

    • @pauleveritt201
      @pauleveritt201 6 лет назад +3

      In PyCharm, tool windows such as "Run" have a little gear in the header. Click on that, choose "Move to -> Right". I do that all the time on my wide external monitor...and if you have any other questions, reply to this comment. I love talking about this.

    • @MusiQ8dict
      @MusiQ8dict 4 года назад

      @@pauleveritt201 thank you.

  • @dARKf3n1Xx
    @dARKf3n1Xx 6 лет назад +3

    I like his shirt :P

  • @FileHorsecom
    @FileHorsecom 6 лет назад

    WOW, great info!

  • @vishnuvs6121
    @vishnuvs6121 5 лет назад +7

    You must see this video in 1.5x speed.

  • @rschalch
    @rschalch 6 лет назад +2

    I appreciate Brian's effort but he must improve his live skills, as I believe many people felt lost on several moments during this webinar. I believe the book is much better

    • @MrSushant3
      @MrSushant3 6 лет назад +1

      Have you read his book ? Would you recommend it to someone who wants to learn testing in Python once and for all.

    • @XWRIATAKOS
      @XWRIATAKOS 6 лет назад +2

      First time I watched it I fall asleep. The second time I searched the comments to find someone mentions this.

    • @GabrieleBonetti
      @GabrieleBonetti 6 лет назад +1

      I did read it and I would recommend it. It's well written and full of examples.
      Just keep in mind that is a book on pytest and not on testing in general, but considering pytest is the de-facto standard for the foreseeable future, it's a good move to learn it.

    • @arnoldwolfstein
      @arnoldwolfstein 5 лет назад

      Agree. He may know a lot but could not collect his thoughts and explain his point of view. I lost often. On the otherside, he shows great stuffs.

    • @DanOblinger
      @DanOblinger 5 лет назад

      this was not my experience. I understood where he was going, indeed I wish in a few cases he could have jumped a few second out of the video so he could show more complete answers, while still keeping the pace. At 1.5 hours I would want it to be a touch SHORTER not LONGER. but that is me.

  • @freddief939
    @freddief939 6 лет назад

    I prefer a text editor :)

  • @basabdattaray1
    @basabdattaray1 4 года назад +1

    The interviewer was very disruptive and spoiled the flow of the presenter. The presenter, however, was very knowledgeable.