Skip to content

Latest commit

 

History

History
64 lines (46 loc) · 1.82 KB

CHANGELOG.md

File metadata and controls

64 lines (46 loc) · 1.82 KB

1.7

  • Remove TestParameterInjector support for org.junit.runners.Parameterized, which was undocumented and thus unlikely to be used.

1.6

  • Bugfixes
  • Better documentation

1.5

  • @TestParameters can now also be used as a repeated annotation:
// Newly added and recommended for new code
@Test
@TestParameters("{age: 17, expectIsAdult: false}")
@TestParameters("{age: 22, expectIsAdult: true}")
public void withRepeatedAnnotation(int age, boolean expectIsAdult){...}

// The old way of using @TestParameters is still supported
@Test
@TestParameters({
    "{age: 17, expectIsAdult: false}",
    "{age: 22, expectIsAdult: true}",
})
public void withSingleAnnotation(int age, boolean expectIsAdult){...}
  • @TestParameters supports setting a custom test name:
@Test
@TestParameters(customName = "teenager", value = "{age: 17, expectIsAdult: false}")
@TestParameters(customName = "young adult", value = "{age: 22, expectIsAdult: true}")
public void personIsAdult(int age, boolean expectIsAdult){...}
  • Test names with very long parameter strings are abbreviated differentily: In some cases, more characters are allowed.

1.4

  • Bugfix: Run test methods declared in a base class (instead of throwing an exception)
  • Test names with very long parameter strings are now abbreviated with a snippet of the shortened parameter
  • Duplicate test names are given a suffix for deduplication
  • Replaced dependency on protobuf-java by a dependency on protobuf-javalite

1.3

  • Treat 'null' as a magic string that results in a null value

1.2

  • Don't use the parameter name if it's not explicitly provided by the compiler
  • Add support for older Android SDK versions by removing the dependency on j.l.r.Parameter. The minimum Android SDK version is now 24.

1.1

  • Add support for ByteString and byte[]