GitHub: AI-Augmented Testing and Refactoring
GitHub: AI-Augmented Testing and Refactoring
This course is part of Mastering GitHub Specialization
Instructor: Alfredo Deza
Included with
Learn more
Ask Coursera
Recommended experience
Recommended experience
What you'll learn
Apply AI-assisted test-driven development to generate tests, mock dependencies, and evaluate test coverage using GitHub Copilot and PyTest
Analyze cross-file dependencies and execute system-wide code cleanup by leveraging @workspace references and style enforcement with GitHub Copilot
Create infrastructure-as-code configurations including Ansible playbooks, Dockerfiles, and Terraform modules using AI-assisted generation workflows
Skills you'll gain
Details to know
April 2026
4 assignments
See how employees at top companies are mastering in-demand skills
Build your subject-matter expertise
- Learn new concepts from industry experts
- Gain a foundational understanding of a subject or tool
- Develop job-relevant skills with hands-on projects
- Earn a shareable career certificate
There are 3 modules in this course
Learn to accelerate your software development workflow by combining GitHub Copilot with test-driven development, system-wide refactoring, and infrastructure-as-code generation. This course teaches you to use AI assistance at every stage of code quality β from writing your first test to deploying containerized applications.
You will start with AI-assisted test-driven development, using GitHub Copilot to generate test cases, mock dependencies, and evaluate test coverage with pytest. You will then move to system-wide refactoring, leveraging @workspace references to analyze cross-file dependencies, enforce coding standards, and execute coordinated code cleanup across large codebases. The course concludes with infrastructure-as-code generation, where you use Copilot to produce Ansible playbooks, Dockerfiles with distroless multi-stage builds, and Terraform configurations for cloud deployment. Each lesson includes hands-on challenges and solution walkthroughs using real Rust and Python projects. By the end of this course, you will have a practical toolkit for integrating AI assistance into testing, refactoring, and infrastructure workflows β skills that directly reduce development cycle time while improving code quality.
Covers AI-assisted TDD fundamentals, generating complex test suites, mocking dependencies, hands-on TDD challenges, and evaluating test coverage with GitHub Copilot.
What's included
8 videos2 readings1 assignment
8 videosβ’Total 33 minutes
- Course Introductionβ’1 minute
- Introduction to AI-Assisted TDDβ’4 minutes
- Generating Complex Test Suitesβ’7 minutes
- Mocking Dependencies with Copilotβ’4 minutes
- Mocking Dependencies with Copilotβ’4 minutes
- Challenge: TDD for a New Featureβ’2 minutes
- Solving a Feature with TDDβ’5 minutes
- Evaluating Test Coverageβ’5 minutes
2 readingsβ’Total 2 minutes
- Key Terms: AI-Assisted Test-Driven Developmentβ’1 minute
- Reflection: AI-Assisted Test-Driven Developmentβ’1 minute
1 assignmentβ’Total 5 minutes
- AI-Assisted Test-Driven Developmentβ’5 minutes
Covers strategic workspace usage, cross-file dependency analysis, system-wide code cleanup, style enforcement, custom guidelines, infrastructure-as-code generation with Dockerfiles and Terraform, and course conclusion.
What's included
9 videos4 readings2 assignments
9 videosβ’Total 40 minutes
- Generating IaC Configurationsβ’4 minutes
- Creating Dockerfiles with AIβ’4 minutes
- Terraform Configuration Generationβ’4 minutes
- Course Conclusionβ’2 minutes
- Strategic Use of Workspaceβ’5 minutes
- Analyzing Cross-File Dependenciesβ’4 minutes
- Challenge: System-Wide Code Cleanupβ’4 minutes
- Enforcing Styles and Constraintsβ’8 minutes
- Generating Guidelines for Specific Tasksβ’4 minutes
4 readingsβ’Total 40 minutes
- Key Terms: Infrastructure as Code Generationβ’10 minutes
- Reflection: Infrastructure as Code Generationβ’10 minutes
- Key Terms: System-Wide Refactoring and Code Qualityβ’10 minutes
- Reflection: System-Wide Refactoring and Code Qualityβ’10 minutes
2 assignmentsβ’Total 35 minutes
- System-wide refactoringβ’30 minutes
- System-Wide Refactoring and Infrastructure as Codeβ’5 minutes
Apply AI-assisted testing, system-wide refactoring, and infrastructure-as-code generation techniques in an end-to-end development scenario that synthesizes all course concepts.
What's included
1 reading1 assignment
1 readingβ’Total 10 minutes
- Next stepsβ’10 minutes
1 assignmentβ’Total 30 minutes
- AI-Augmented testing and Refactoringβ’30 minutes
Earn a career certificate
Add this credential to your LinkedIn profile, resume, or CV. Share it on social media and in your performance review.
Instructor
Offered by
Explore more from Software Development
- Status: Preview
Course
- Status: PreviewE
Edureka
Course
- Status: Free TrialP
Pragmatic AI Labs
Course
- Status: Preview
Course
Why people choose Coursera for their career
Advance your career with an online degree
Earn a degree from world-class universities - 100% online
Frequently asked questions
No. The course teaches Copilot techniques from the ground up, starting with test generation and building to complex workspace-level operations. Basic programming experience in Python or Rust is sufficient
The course uses Python with pytest for testing demonstrations and Rust for infrastructure-as-code and refactoring examples. You will work with real projects in both languages throughout the hands-on exercises.
Yes. The infrastructure-as-code module covers generating Ansible playbooks, Dockerfiles with distroless multi-stage builds, and Terraform configurations for cloud deployment β all using GitHub Copilot to accelerate the process.
More questions
Financial aid available,
