Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce new DynamicTests generators in class DynamicTest #3720

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Commits on Jan 19, 2024

  1. Introduce new interface NamedExecutable

    Introduce new interface NamedExecutable that associates a name, a
    payload and an Executable.
    
    This was introduced to help colocate test's diplayName, payload, and
    testExecutor in one place. Concrete usage of this interface is in the
    next commit.
    
    Issue: junit-team#3261
    mobounya committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    07730c4 View commit details
    Browse the repository at this point in the history
  2. Simplify the generation of DynamicTests stream

    Introduce two methods in the class DynamicTest to generate a stream of
    DynamicTests from a Stream/Iterator of NamedExecutables.
    
    Instead of passing an inputStream, a displayNameGenerator and a
    testExecutor separately, these two additional methods will allow you
    to pass one Iterator/Stream of a NamedExecutable.
    
    Unlike the Named interface, the NamedExecutable can colocate assertion
    callbacks in one container using the execute method.
    
    Issue: junit-team#3261
    mobounya committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    4fa5160 View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2024

  1. Document new changes

    Write new changes to the release notes for 5.11M1 and add a simple demo
    in DynamicTestsDemo.
    
    Issue: junit-team#3261
    mobounya committed Jan 20, 2024
    Configuration menu
    Copy the full SHA
    5e94bd1 View commit details
    Browse the repository at this point in the history