All Topics
›
TestNG & JUnit
TestNG & JUnit
TestNG and JUnit 5 test frameworks for Java
4
Articles
1
Beginner
4
Intermediate
2
Advanced
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 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.
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.