Test & Code - Python Testing & Development

  • Autor: Vários
  • Narrador: Vários
  • Editor: Podcast
  • Duración: 125:25:54
  • Mas informaciones

Informações:

Sinopsis

Test & Code is a weekly podcast hosted by Brian Okken.The show covers a wide array of topics including software development, testing, Python programming, and many related topics. When we get into the implementation specifics, that's usually Python, such as Python packaging, tox, pytest, and unittest. However, well over half of the topics are language agnostic, such as data science, DevOps, TDD, public speaking, mentoring, feature testing, NoSQL databases, end to end testing, automation, continuous integration, development methods, Selenium, the testing pyramid, and DevOps.

Episodios

  • 157: pre-commit - Anthony Sottile

    11/06/2021 Duración: 41min

    pre-commit started as a framework for running linters and code formatters during git actions via git hooks. It's grown and expanded and now supports an extensive list of languages and actions and manual running of actions. But even at it's core, it's great for letting computers nitpick about whitespace and formatting, so that code reviews can focus on architecture and design. Anthony Sottile discusses pre-commit, for using locally by developers, and pre-commit.ci, which can run actions during merge requests. "Git hook scripts are useful for identifying simple issues before submission to code review. We run our hooks on every commit to automatically point out issues in code such as missing semicolons, trailing whitespace, and debug statements. By pointing these issues out before code review, this allows a code reviewer to focus on the architecture of a change while not wasting time with trivial style nitpicks." - pre-commit.com "Developers spend a fair chunk of time during their development flow fixing re

  • 156: Flake8: Python linting framework with Pyflakes, pycodestyle, McCabe, and more - Anthony Sottile

    03/06/2021 Duración: 23min

    Flake8 is a command-line tool for linting Python projects. By default, it includes lint checks provided Pyflakes, pycodestyle, and McCabe It's also a platform, and allows plugins to extend the checks. Flake8 will run third-party extensions if they are found and installed. But what does all of that mean? Anthony Sottile is a maintainer of flake8 and has kindly offered to explain it to us. Full TranscriptSpecial Guest: Anthony Sottile.Sponsored By: Datadog: Modern end-to-end monitoring & security. See inside any stack, any app, at any scale, anywhere. Get started with a free trial at testandcode.com/datadog and Datadog will send you a free t-shirt. ConfigCat.com: Release features faster with less risk with ConfigCat. You can try it out with the forever free plan or get 25% off with code testandcode2021 Promo Code: testandcode2021 Links: Flake8: Your Tool For Style Guide Enforcement pyflakes pycodestyle mccabe pyflakes/messages.py flake8 Error / Violation Codes wemake-python-styleguide flake8-typing-

  • 155: Four Questions to Ask Frequently During Software Projects - Tim Ottinger

    28/05/2021 Duración: 23min

    Tim Ottinger has four questions that work great in many situations, from doing homework, to cooking, to writing code, to entire software projects. They are actually awesome questions to ask during a software project. We discuss the questions, where they came from, and look at some uses in software. The questions: What is it that needs to be done? What do we need in order to do it? Where can we get what we need? How can we tell if we’re doing it right? Bonus question that can be swapped out for #1: What's the most important thing that it doesn't do yet? Full TranscriptSpecial Guest: Tim Ottinger.Sponsored By: PyCharm Professional: Try PyCharm Pro for 4 months and learn how PyCharm will save you time. Promo Code: TESTANDCODE22 ConfigCat.com: Release features faster with less risk with ConfigCat. You can try it out with the forever free plan or get 25% off with code testandcode2021 Promo Code: testandcode2021 Links:The Four Questions If you like Test & Code, I think you'll also like Python Peopl

  • 154: Don't Mock your Database - Jeff Triplett

    21/05/2021 Duración: 31min

    You need tests for your web app. And it has a database. What do you do with the database during testing? Should you use the real thing? or mock it? Jeff Triplett says don't mock it. In this episode, we talk with Jeff about testing web applications, specifically Django apps, and of course talk about the downsides of database mocking. Full TranscriptSpecial Guest: Jeff Triplett.Sponsored By: Datadog: Modern end-to-end monitoring & security. See inside any stack, any app, at any scale, anywhere. Get started with a free trial at testandcode.com/datadog and Datadog will send you a free t-shirt. ConfigCat.com: Release features faster with less risk with ConfigCat. You can try it out with the forever free plan or get 25% off with code testandcode2021 Promo Code: testandcode2021 Links: "

  • 153: Playwright for Python: end to end testing of web apps - Ryan Howard

    14/05/2021 Duración: 31min

    Playwright is an end to end automated testing framework for web apps with Python support and even a pytest plugin. Full TranscriptSpecial Guest: Ryan Howard.Sponsored By: PyCharm Professional: Try PyCharm Pro for 4 months and learn how PyCharm will save you time. Promo Code: TESTANDCODE22Links: Playwright for Python Why Playwright? playwright-pytest If you like Test & Code, I think you'll also like Python People Python People is a new podcast about getting to know the people who make Python and our community awesome. Be sure to check out pythonpeople.fm. 

  • 152: Python Packaging - Brett Cannon

    07/05/2021 Duración: 49min

    I always learn a lot when I talk to Brett, and this episode is no exception. We talk about the packaging workflow, tools, changes, pyproject.toml, flit, setuptools, and so much more. I hope you learn as much as I did in this great discussion. Full TranscriptSpecial Guest: Brett Cannon.Sponsored By: Datadog: Modern end-to-end monitoring & security. See inside any stack, any app, at any scale, anywhere. Get started with a free trial at testandcode.com/datadog and Datadog will send you a free t-shirt. Links: pytest-srcpaths Python Packaging User Guide pypa/packaging: Core utilities for Python packages flit and requires-python Extending and Embedding the Python Interpreter — Python 3.9.2 documentation Flit setuptools PEP 518 -- Specifying Minimum Build System Requirements for Python Projects | Python.org PEP 517 -- A build-system independent format for source trees | Python.org Flit editable installs with --symlink or --pth-file PEP 440 -- Version Identification and Dependency Specification | Python.org Spe

  • 151: Python Adventure - Brandon Rhodes

    28/04/2021 Duración: 56min

    Adventure, or Colossal Cave Adventure, was written between 1975 and 1977 in Fortran. Brandon Rhodes ported it to Python 3, initial release in 2011, and still maintains it. We talk to Brandon about this wonderful game. YOU ARE STANDING AT THE END OF A ROAD BEFORE A SMALL BRICK BUILDING. AROUND YOU IS A FOREST. A SMALL STREAM FLOWS OUT OF THE BUILDING AND DOWN A GULLY. >>> east A bit later... IT IS NOW PITCH DARK. IF YOU PROCEED YOU WILL LIKELY FALL INTO A PIT. >>> light(lamp) YOUR LAMP IS NOW ON. YOU ARE IN A DEBRIS ROOM FILLED WITH STUFF WASHED IN FROM THE SURFACE. A LOW WIDE PASSAGE WITH COBBLES BECOMES PLUGGED WITH MUD AND DEBRIS HERE, BUT AN AWKWARD CANYON LEADS UPWARD AND WEST. A NOTE ON THE WALL SAYS ... What's happening is that I'm playing adventure, which you can pip install thanks to Brandon Rohdes. Adventure is a faithful port to Python 3 from the original 1977 FORTRAN code by Crowther and Woods that lets you explore Colossal Cave, where others have found fortunes in tre

  • 150: A Practical Testing Strategy

    15/04/2021 Duración: 10min

    Coming up with a testing strategy doesn't have to be stressful. Prioritizing features to test, and generating test cases for each feature can be fairly quick and painless. This episode covers a strategy for both that can be applied to many types of software. Full TranscriptSponsored By: PyCharm Professional: Try PyCharm Pro for 4 months and learn how PyCharm will save you time. Promo Code: TESTANDCODE22 If you like Test & Code, I think you'll also like Python People Python People is a new podcast about getting to know the people who make Python and our community awesome. Be sure to check out pythonpeople.fm. 

  • 149: I don't test my code, "crappy Python" is all I write - Corey Quinn

    31/03/2021 Duración: 49min

    Corey Quinn is the Chief Cloud Economist at The Duckbill Group. He's also a podcaster and writes a newsletter. And he also automates things with Python. But he doesn't write tests. Let's find out why. Reason for the interview. Rough summary of a twitter conversation: Corey: What podcasts should I try to get an invite onto? ToonArmyCaptain: Python Bytes, Test & Code, Talk Python Corey: But... I don't test my code, "crappy Python" is all I write, and I'd feel like a giant imposter. So yeah, I'd be game. link So here we are. This diagram is referenced in the show, the Last Week In AWS Newsletter Production Pipeline. Full TranscriptSpecial Guest: Corey Quinn.Sponsored By: PyCharm Professional: Try PyCharm Pro for 4 months and learn how PyCharm will save you time. Promo Code: TESTANDCODE22Links:Last Week in AWS If you like Test & Code, I think you'll also like Python People Python People is a new podcast about getting to know the people who make Python and our community awesome. Be sure to check o

  • 148: Coverage.py and testing packages

    12/03/2021 Duración: 14min

    How do you test installed packages using coverage.py? Also, a couple followups from last week's episode on using coverage for single file applications. Full TranscriptSponsored By: Linode: If it runs on Linux, it runs on Linode. Get started on Linode today with $100 in free credit for listeners of Test & Code. Links: episode 147: Testing Single File Python Applications/Scripts with pytest and coverage Specifying source files — Coverage.py documentation Testing & Packaging - Hynek ack If you like Test & Code, I think you'll also like Python People Python People is a new podcast about getting to know the people who make Python and our community awesome. Be sure to check out pythonpeople.fm. 

  • 147: Testing Single File Python Applications/Scripts with pytest and coverage

    06/03/2021 Duración: 11min

    Have you ever written a single file Python application or script? Have you written tests for it? Do you check code coverage? This is the topic of this weeks episode, spurred on by a listener question. The questions: For single file scripts, I'd like to have the test code included right there in the file. Can I do that with pytest? If I can, can I use code coverage on it? The example code discussed in the episode: script.py def foo(): return 5 def main(): x = foo() print(x) if __name__ == '__main__': # pragma: no cover main() ## test code # To test: # pip install pytest # pytest script.py # To test with coverage: # put this file (script.py) in a directory by itself, say foo # then from the parent directory of foo: # pip install pytest-cov # pytest --cov=foo foo/script.py # To show missing lines # pytest --cov=foo --cov-report=term-missing foo/script.py def test_foo(): assert foo() == 5 def test_main(capsys): main() captured = capsys.readouterr() assert capture

  • 146: Automation Tools for Web App and API Development and Maintenance - Michael Kennedy

    28/02/2021 Duración: 48min

    Building any software, including web apps and APIs requires testing. There's automated testing, and there's manual testing. In between that is exploratory testing aided by automation tools. Michael Kennedy joins the show this week to share some of the tools he uses during development and maintenance. We talk about tools used for semi-automated exploratory testing. We also talk about some of the other tools and techniques he uses to keep Talk Python Training, Talk Python, and Python Bytes all up and running smoothly. We talk about: Postman ngrok sitemap link testing scripts for manual processes using failover servers during maintenance, redeployments, etc gitHub webhooks and scripts to between fail over servers and production during deployments automatically floating IP addresses services to monitor your site: StatusCake, BetterUptime the affect of monitoring on analytics crash reporting: Rollbar, Sentry response times load testing: Locus Full TranscriptSpecial Guest: Michael Kennedy.Sponsored By:

  • 145: For Those About to Mock - Michael Foord

    18/02/2021 Duración: 48min

    A discussion about mocking in Python with the original contributor of unittest.mock, Michael Foord. Of course we discuss mocking and unittest.mock. We also discuss: testing philosophy unit testing and what a unit is TDD where Michael's towel is, and what color Micheal was instrumental in the building of testing tools for Python, and continues to be a pragmatic source of honest testing philosopy in a field that has a lot of contradictory information. Full TranscriptSpecial Guest: Michael Foord.Sponsored By: PyCharm Professional: Try PyCharm Pro for 4 months and learn how PyCharm will save you time. Promo Code: TESTANDCODE22Links: unittest.mock - Python docs Mocks Aren't Stubs - Martin Fowler pytest-mock mock.patch Autospeccing Arrange Act Assert testing-in-python mailing list Classical and Mockist Testing — Classical and Mockist Testing Test First Programming / Test First Development episode 102: Cosmic Python, TDD, testing and external dependencies - Harry Percival episode 132: mocking in Python - A

  • 144: TDD in Science - Martin Héroux

    13/02/2021 Duración: 54min

    Test Driven Development, TDD, is not easy to incorporate in your daily development. Martin and Brian discuss TDD and testing and Martin's experience with testing, TDD, and using it for code involved with scientific research. We discuss lots of topics around this, including: What is TDD? Should research software be tested in order to be trusted? Time pressure and the struggle to get code done quickly. How do you make time for tests also? Is testing worth it for code that will not be reused? Sometimes it's hard to know how to test something. Maybe people should learn to test alongside learning how to code. A desire for a resource of testing concepts for non-CS people. Are the testing needs and testing information needs different in different disciplines? Biology, Physics, Astrophysics, etc. Do they have different testing needs? Do we need a "how to test" resource for each? Full TranscriptSpecial Guest: Martin Héroux.Sponsored By: Linode: If it runs on Linux, it runs on Linode. Get started on Linode

  • 143: pytest markers - Anthony Sottile

    07/02/2021 Duración: 40min

    Completely nerding out about pytest markers with Anthony Sottile. Some of what we talk about: Running a subset of tests with markers. Using marker expressions with and, or, not, and parentheses. Keyword expressions also can use and, or, not, and parentheses. Markers and pytest functionality that use mark, such as parametrize, skipif, etc. Accessing markers with itermarkers and get_closest_marker through item. Passing values, metadata through markers to fixtures or hook functions. Full TranscriptSpecial Guest: Anthony Sottile.Sponsored By: PyCharm Professional: Try PyCharm Pro for 4 months and learn how PyCharm will save you time. Promo Code: TESTANDCODE22Links: Registering markers slow marker example in pytest documentation — Control skipping of tests according to command line option pytest-repeat · PyPI source code for pytest-repeat Working with custom markers — pytest documentation Using -k expr to select tests based on their name Marker revamp and iteration, Historical Notes — pytest documentation I

  • 142: MongoDB - Mark Smith

    25/01/2021 Duración: 35min

    MongoDB is possibly the most recognizable NoSQL document database. Mark Smith, a developer advocate for MongoDB, answers my many questions about MongoDB. We cover some basics, but also discuss some advanced features that I never knew about before this conversation. Full TranscriptSpecial Guest: Mark Smith.Sponsored By: PyCharm Professional: Try PyCharm Pro for 4 months and learn how PyCharm will save you time. Promo Code: TESTANDCODE22Links: MongoDB Everything You Know About MongoDB is Wrong! Implementing Event Sourcing and CQRS pattern with MongoDB If you like Test & Code, I think you'll also like Python People Python People is a new podcast about getting to know the people who make Python and our community awesome. Be sure to check out pythonpeople.fm. 

  • 141: Visual Testing - Angie Jones

    30/12/2020 Duración: 31min

    Visual Testing has come a long way from the early days of x,y mouse clicks and pixel comparisons. Angie Jones joins the show to discuss how modern visual testing tools work and how to incorporate visual testing into a complete testing strategy. Some of the discussion: Classes of visual testing: problems with pixel to pixel testing DOM comparisons, css, html, etc. AI driven picture level testing, where failures look into the DOM to help describe the problem. Where visual testing fits into a test strategy. Combining "does this look right" visual testing with other test workflows. "A picture is worth a thousand assertions" - functional assertions built into visual testing. Baselining pictures in the test workflow. Also discussed: automation engineer Test Automation University Special Guest: Angie Jones.Sponsored By: PyCharm Professional: Try PyCharm Pro for 4 months and learn how PyCharm will save you time. Promo Code: TESTANDCODE22Links:Test Automation University If you like Test & Code, I thin

  • 140: Testing in Scientific Research and Academia - Martin Héroux

    18/12/2020 Duración: 48min

    Scientists learn programming as they need it. Some of them learn it in college, but even if they do, that's not their focus. It's not surprising that sharing the software used for scientific research and papers is spotty, at best. And what about testing? We'd hope that the software behind scientific research is tested. But why would we expect that? We're lucky if CS students get a class or two that even mentions automated tests. Why would we expect other scientists to just know how to test their code? Martin works in research and this discussion is about software and testing in scientific research and academia.Special Guest: Martin Héroux.Sponsored By: PyCharm Professional: Try PyCharm Pro for 4 months and learn how PyCharm will save you time. Promo Code: TESTANDCODE22Links: Python Testing with pytest: Simple, Rapid, Effective, and Scalable Test Driven Development: By Example My reaction to "Is TDD Dead?" - Python Testing MartinHeroux/pliffy: Plotting differences with Python PyBites Code Challenges Python Mo

  • 139: Test Automation: Shifting Testing Throughout the Software Lifecycle - Nalin Parbhu

    04/12/2020 Duración: 37min

    Talking with Nalin Parbhu about the software evolution towards more test automation and the creation of Infuse and useMango. We talk a software development and "shift left" where automated tests and quality checks have moved earlier into the software lifecycle. Software approaches and where quality fits in Shift left Test automation Roles of software developers, SDETs (software development engineer in test), testers, QA, etc. Developers doing testing and devops Automated testing vs manual testing Regression testing, UI testing, black bock testing Unit testing, white box, API, end to end testing User acceptance testing (UAT) Mullet Methodology (Agile at the front, Waterfall at the back) Waterwheel Methodology (Requirements -> iterative development -> QA) What's an agile team? Developer resistance to testing Manifesto for agile software development Iterative development Adapting to change Agility: being able to change course quickly Special Guests: Nalin Parbhu and Ola Omiyale.Sponsored By: PyCharm Pr

  • 138: Mutation Testing in Python with mutmut - Anders Hovmöller

    19/11/2020 Duración: 30min

    Your test suite tells you about the quality of your code under test. Mutation testing is a way to tell you about the quality of your test suite. Anders Hovmöller wrote mutmut for mutation testing in Python, and can be used with pytest, unittest, and others. In this episode, Anders explains mutation testing, how mutation testing with mutmut works, and good workflows.Special Guest: Anders Hovmöller.Sponsored By: Electronic Specifier Insights: Podcast with reviews from electronics shows and latest tech electronics companies are releasing PyCharm Professional: Try PyCharm Pro for 4 months and learn how PyCharm will save you time. Promo Code: TESTANDCODE22 Links: mutmut · PyPI cosmic-ray · PyPI MutPy · PyPI parso · PyPI mutmut documentation Ned Batchelder article on mutmut If you like Test & Code, I think you'll also like Python People Python People is a new podcast about getting to know the people who make Python and our community awesome. Be sure to check out pythonpeople.fm. 

página 5 de 12