|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/pytest-course/
课程评论:没有评论
课程名称:使用 Pytest 进行真实世界的 Python 测试自动化(Django 应用) 课程概述: 本课程是任何关注测试的人的必修课。通过构建一个真实的 Django 应用程序,我将教授 pytest 的细节和使用方法,包括在 Bitbucket 中创建持续集成系统。课程中,我们将构建一个非常简单的 Django 服务器,我将教授必要的 Django 知识,以便专注于测试。我们将从各个角度对应用程序进行测试,包括单元测试、集成测试、API 测试、端到端测试和性能测试,总共超过 40 个测试。您将最终建立一个完整的 CI 系统,集成 Bitbucket 云管道、Slack 消息和 Allure 报告。每当我们进行代码推送时,CI 系统将运行我们的测试,并通知我们构建是否通过。 本课程内容深入,我们将共同从零开始实现 pytest 的一些功能,以便了解 pytest 在运行测试时的内部工作原理。本课程并非入门级课程,需具备基本的 Python 知识。 您将学习到: - 深入了解 pytest 的特性,包括 Fixtures、Markers、Parametrize、Skip、xfail、pytest.ini、pytest-django、pytest-cov 和 pytest-xdist - unittest 库、Mocks 和 Requests 库的使用 - Django(足够构建一个 Web 服务器) - REST API、模型、迁移、视图、序列化、SQLite3 数据库和邮件后端 - 深入了解持续集成,包括 Bitbucket 管道和环境变量、并行步骤、Docker 和 Slack 消息集成 - Allure 报告 - 深入测试方法,包括单元测试、Mocking、Patching、Stubs、集成测试和性能测试 - 测试环境与 Python 最佳实践,包括虚拟环境(pipenv)、Pipfile、类型提示和 Black 格式化程序 - .env 文件的使用和重新创建 React 项目 UI(无需先前知识) 通过本课程,您将获得全面的测试自动化知识,能够在实际工作中有效应用。
This is a MUST course for anyone who cares about testing.I teach the ins and outs of pytest while building a real-world Django application (including a continuous integration system in bitbucket).In this course, we will build a very simple Django server, I will teach just enough Django so that we will be able to build the application and then focus on testing it.We will together test the application from all angels - Unit tests, integration tests, API tests, end-to-end tests , and performance tests with (a total of over 40 tests)You will end up with a complete CI system that integrates bitbucket cloud pipelines, slack messaging, and allure reporting.Every time we will make a push, the CI system will run our tests and will notify us if the build passed/failed.In this course, we go in-depth, and we will even implement together (from scratch) some of pytest's features so that we will know what happens under the hood when pytest is running our tests.This is not an entry-level course; basic knowledge of python is needed You will learn:Pytest features (in-depth)FixturesMarkersParametrizeSkip, xfailPytest.iniPytest-djangoPytest-covpytest-xdistunittest library, mocksRequests libraryDjango (just enough to build a web server)Rest APIModels, MigrationsViewsSerializersSQLite3 DBEmail backendsContinuous Integration (in-depth)Bitbucket pipelinesBitbucket environment variablesParallel stepsDockerSlack messaging integrationAllure ReportingTesting (In-depth)Unit testsMocking. Patching, StubsIntegration testsPerformance testsTesting environmentsPython best practiceVirtual environments: pipenvPipfileType hintingBlack formatter.env FileRecreating react our projects UI (No prior knowledge is needed