Python Testing 101

所在平台: Udemy

课程主页: https://www.udemy.com/course/python-testing-101/

课程评论:没有评论

第一个写评论        关注课程

课程简介

Coursera 课程:Python Testing 101 本课程是关于使用 Python 的 Unittest 框架进行单元测试。单元测试是一种软件测试方法,用于独立测试程序的各个组件(单元)及其依赖项。单元测试通常由开发人员编写,并且是软件开发过程中的一个正式环节。 在这门课程中,您将学习单元测试的基础知识,包括: * 什么是单元测试 * 单元测试的基本语法和简单示例 * 单元测试中可用的各种方法和工具,用于运行和调试测试 * 如何使用 mocks 和 patching 来隔离待测试的代码,并模拟其他系统组件或库的响应 课程内容涵盖了 Python 项目单元测试的各个方面,教授高效编写和执行单元测试的技巧,以在用户发现问题之前找出 bug。 课程将使用 Python 标准库中的 Unittest 框架,并假设您具备基础的 Python 编程经验。您将学会如何断言测试结果、发现测试以及如何编写更易读和易于管理的测试。课程中将包含大量 Python 单元测试代码示例。 课程涵盖的主要主题包括: * 在 PyCharm 中创建带有虚拟环境的项目 * Unittest Fixtures 和 Test Discovery * 使用 Mock 和 Test Doubles * 使用 Pytest 作为测试运行程序并生成详细的测试报告 * 使用 Jenkins 运行和共享测试报告 * 参数化测试 * 为实际运行的应用程序编写单元测试 通过本课程,您将掌握 Python 项目单元测试的基础,并能有效测试和改进您的 Python 代码。

课程评论(0条)

课程详情

Welcome to Python Testing 101 - Unit Testing Python code with Python Unittest framework.Unit testing is a software testing methodology wherein the individual components or parts of the program, called units, are tested independently with all the required dependencies. Unit testing is mostly done by developers, who write the programs for the units. In most of the software projects, unit testing is part of a formal process of development with proper schedule and or efforts allocated for writing unit tests.The course lets you get your hands dirty with the basic building blocks in testing, which are unit tests. Here you will be taken through what a unit test is, the basic syntax, and examples of a simple unit test. Then, you will learn about the methods available to use in unit testing and the various tools available to help in running and debugging your tests. You also will learn about use of mocks and patching, which helps you to isolate the code you are interested in testing (your "units"), and simulate responses from other parts of the system or libraries.This course will help you master the fundamentals of Unit testing of Python project. It teaches you various techniques for writing unit tests in Python and how to execute them efficiently, and find the bugs before your users do!We will be using Python Unittest framework which comes with Python standard library and it assumes that you have minimal prior experience with Python coding. You'll learn how to assert parts of your tests, how to discover the tests, and make tests easier to read and manage. Throughout the course you will see lots of unit test code examples in Python.Some of the interesting topics covered in the course are:Create Project in Pycharm with Virtual EnvUnittest Fixtures & Test DiscoveryUsing Mock and Test DoublesPytest as Test Runner and generating nice reportsJenkins to run and share the test reportsParameterized TestsWriting unittest for a Real, Working ApplicationThank you and see you in this course.

课程标签

0人关注该课程

主题相关的课程