Test Driven Development(TDD) with Laravel - Trust but Verify

所在平台: Udemy

课程主页: https://www.udemy.com/course/tdd-wth-laravel56/

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:与 Laravel 一起进行测试驱动开发(TDD)- 相信但要验证 课程概述:作为一名 PHP 开发者,您可以使用测试驱动开发(TDD)技术来通过编写测试来开发软件。通常,TDD 将每个开发任务分解为单独的单元。然后编写测试以确保单元按预期行为运行。测试驱动开发是一个通常在标准项目中使用的概念,但很多软件开发者却鲜有了解。每个采用测试驱动开发的项目都会反复遵循三个简单步骤:首先,为下一个要添加的功能编写测试;其次,编写功能代码,直至测试通过;最后,对新旧代码进行重构,使其结构良好。继续以此循环,每次只关注一个测试,逐步构建系统的功能。测试将帮助您进行重构,从而随着时间推移改善设计,令一些设计问题更加明显。包含小型独立组件的测试称为单元测试。单元测试可以独立执行,但如果您在与其他组件集成时测试某些组件,则您正在进行集成测试。第三种测试方式是测试桩,它允许您在不进行真实数据库调用的情况下测试代码。在本课程中,欢迎您加入我,一同探索编程的全新世界。

课程评论(0条)

课程详情

As a PHP developer, you may use the Test-Driven Development (TDD) technique to develop your software by writing tests. Typically, TDD will divide each task of the development into individual units. A test is then written to ensure that the unit behaves as expected.Test driven development is a concept usually used in standard projects that many software developers surprisingly don't know. Every project that uses Test-Driven Development follows three simple steps repeatedly: Write a test for the next bit of functionality you want to add.Write the functional code until the test passes.Refactor both new and old code to make it well structured. Continue cycling through these three steps, one test at a time, building up the functionality of the system. Testing will help you to refactor, which allows you to improve your design over time and makes some design problems more obvious. The tests that contain small individual components are called unit tests. While unit tests can be carried out independently, if you test some of the components when they are integrated with other components, you are doing integration testing. The third kind of testing is test stubs. Test stubs allow you to test your code without having to make real calls to a database.Join me in this course as I expose you to whole new world of programming.

课程标签

0人关注该课程

主题相关的课程