TestNG & JUnit
TestNG and JUnit 5 test frameworks for Java
TDD Best Practices: FIRST Principles, Test Smells, Legacy Code, CI and Code Coverage
TDD best practices for experienced engineers: FIRST principles, test smells and anti-patterns, TDD in legacy code, TDD in CI/CD.
TDD (Test-Driven Development): Red-Green-Refactor, Mocking and Interview Questions
Test-driven development explained with interview questions by level: red-green-refactor, test naming, JUnit, Mockito, test pyramid.
JUnit 5 Tutorial: Annotations, Assertions, Parameterized Tests and Extensions
JUnit 5 tutorial with examples: setup, lifecycle annotations, assertions, assertThrows, parameterized tests (CsvSource, MethodSource), tags.
TestNG Tutorial (2026): What Is TestNG, Setup, First Test and Execution Order
TestNG tutorial: what TestNG is, why teams use it, Maven setup, a first test class, the execution order of annotations and a learning path.
TestNG Listeners: ITestListener, RetryAnalyzer and Extent Reports (With Code)
TestNG listeners with code: ITestListener with screenshots and Extent Reports, ways to register listeners, and retrying flaky tests with IRetryAnalyzer.
Advanced TestNG: @Factory, invocationCount, timeOut and Execution Control
Advanced TestNG with code: @Factory vs DataProvider, invocationCount and threadPoolSize, timeOut, enabled, singleThreaded and ITestResult codes.
TestNG Best Practices and CI/CD: Maven, Jenkins, GitHub Actions and Common Mistakes
Run TestNG from Maven, Jenkins and GitHub Actions, then keep the suite reliable with best practices and fixes for the most common TestNG mistakes.