Unit Testing: Parameterized JUnit Tests

Junit 5.7    |    Intermediate
  • 6 videos | 49m 56s
  • Includes Assessment
  • Earns a Badge
Rating 4.5 of 37 users Rating 4.5 of 37 users (37)
Parameterized tests in JUnit help developers save time by running the same tests repeatedly, using only different inputs, and getting different results. The focus of this course is on scaling test case executions using repeated and parameterized tests. Start by setting a particular test case to run multiple times using the RepeatedTest annotation. Next, move on to defining test cases that can accept parameters. Then, look into different ways in which the parameters can be fed into your test case - from hard-coded values defined in your test class to CSV files and method invocations. Finally, learn how to build a specialized class to pre-process your parameters before being fed into test cases. Upon completion, you'll know how to conduct repeated executions of JUnit test cases with or without parameters.

WHAT YOU WILL LEARN

  • Discover the key concepts covered in this course
    Apply the repeatedtest annotation to run a test case multiple times
    Use the valuesource annotation to run a parameterized test case several times for a set of pre-defined parameters
  • Set parameterized tests to run for null and empty parameter values as well as csv values
    Define a class to apply a transformation to parameters before they are fed into a test case
    Summarize the key concepts covered in this course

IN THIS COURSE

  • 2m 12s
  • 9m 54s
  • Locked
    3.  Running Parameterized Tests with a ValueSource
    11m 27s
  • Locked
    4.  Working with Different Parameter Sources in JUnit
    11m 53s
  • Locked
    5.  Defining an Argument Converter in JUnit
    12m 49s
  • Locked
    6.  Course Summary
    1m 41s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

Rating 5.0 of 1 users Rating 5.0 of 1 users (1)
Rating 4.5 of 84 users Rating 4.5 of 84 users (84)
Rating 4.4 of 67 users Rating 4.4 of 67 users (67)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.4 of 67 users Rating 4.4 of 67 users (67)
Rating 4.8 of 42 users Rating 4.8 of 42 users (42)
Rating 4.6 of 66 users Rating 4.6 of 66 users (66)