Testing and Frameworks

Learn about the types of testing and testing frameworks in Java.

Types of testing

The following are types of tests you should write:

  • Acceptance tests: High-level tests that match the business requirements.
  • Compatibility: Making sure things work together.
  • Functional: Making sure codes work.
  • Black box: Testing without knowing/thinking about what’s going on in the code.
  • White box: Writing tests while keeping the code that’s being tested in mind.
  • Gray box: This is a hybrid of black and white.
  • Regression: Creating a test after finding a bug to make sure the bug does not reappear.
  • Smoke: This involves a huge sampling of data.
  • Load/Stress/Performance: Seeing how the system handles the load.

Get hands-on with 1400+ tech skills courses.