Skip to content

Releases: rife2/bld-testing-helpers

1.1.0

Choose a tag to compare

@ethauvin ethauvin released this 08 Sep 19:42
ab0951d

Summary

  • Moved to rife.bld.testing and renamed to Testing Helpers
  • Migrated to JSpecify null-safety
  • Made RetryTest a @TestTemplate
  • Added withExceptions filtering to @RetryTest with cause-chain matching
  • Implemented BlankSource annotation
  • Fixed race and overflow issues

What's Changed in 1.1.0

  • Set source encoding to UTF-8 in 142beb8
  • Migrate to JSpecify null-safety, fix LoggingExtension race condition, and switch to fail-fast NPEs instead of silent null handling in 24fcb0e
    • Migrate to JSpecify null-safety
    • Fix LoggingExtension.afterEach/beforeEach race: snapshot/restore now happens inside synchronized(logger), and per-class config removal uses atomic Map.compute instead of a separate get+remove
    • Change TestLogHandler and TestingUtils.generateRandomString to throw NullPointerException on null arguments instead of silently returning false/0/empty results — updated all corresponding tests to assertThrows
    • Add ChronologicalPrintStream.write(int) override and force explicit UTF-8 encoding instead of platform default charset; make null-arg print/println/append methods record "null" consistently instead of skipping the chronological entry
    • Fix TestingUtils.randomInt overflow when max == Integer.MAX_VALUE
  • Fix README documentation links in 7dc3d1f
  • Add withExceptions filtering to @RetryTest with cause-chain matching in f9b932b
  • Make RetryTest a @TestTemplate in 22d064c
  • Implement BlankSource annotation in 451f043
  • Add purge-cache workflow in 2d3326e
  • Move entire project to rife.bld.testing and rename to Testing Helper in d4dee5e

Full Changelog: 1.0.1...1.1.0

1.0.1

Choose a tag to compare

@ethauvin ethauvin released this 30 Apr 08:03
46d660f

Summary

  • Full null-contract enforcement
  • Removed conflicting tools dependency

What's Changed in 1.0.1

  • Add nullability contract for overridden methods in f225bfb
  • Removed Extensions Tools conflicting dependency in 50eddd2

Full Changelog: 1.0.0...1.0.1

1.0.0

Choose a tag to compare

@ethauvin ethauvin released this 30 Mar 02:52
b22bf30

Summary

  • Use Optional where applicable (breaking)
  • When closing a TestLogHandler, records are no longer cleared (breaking)
  • Refactoring of:
    • CaptureOutput
    • CouldFailrExtension
    • LoggingExtension
    • RangeResolver
    • RetryExtension
    • TestingUtils

What's Changed in 1.0.0

  • Improve generateRandomString algorithm in 966a76f
  • Update getLastRecord(), getFirstRecordContaining() and getLastRecordContaining() to return `Optional`` in e3c8455
  • TestLogHandler records are no longer cleared on close in 988ca2c
  • Improve logging and large size handling in 181d20b
  • Refactor LoggingExtension to eliminate race conditions when tests run concurrently in 93b6511
  • Improve CouldFailExtension logging in c8d0647
  • Refactor CaptureOutput to use record and stream in a5f1dfa
  • Improve RetryExtension errors logging in d5ab23a
  • Refactor RandRangeResolver with improved logging and implementation of the Fisher-Yates shuffle in 9bb3ca0

Full Changelog: 0.9.6...1.0.0

0.9.6

Choose a tag to compare

@ethauvin ethauvin released this 16 Feb 10:41
f41fcce

Summary

  • New @CouldFail annotatation and related extentions
  • Refactor @RandomRange and @RandomString to extends their related extensions
  • Use Extensions Tools where applicable

What's Changed in 0.9.6

  • Simplify logging in CouldFailExtension in 3f21968
  • Annotate @RandomRange and @RandomString with JUnit extension support. in cbf3b92
  • Introduce @CouldFail annotation and CouldFailExtension for managing test failures in f64cc51
  • Use IOTools to resolve test results directory in dd7e40c
  • Use TextUtils for null/empty string checks in 708ec89
  • Add CONTRIBUTING.md in e90477e

Full Changelog: 0.9.5...0.9.6

0.9.5

Choose a tag to compare

@ethauvin ethauvin released this 29 Dec 07:01
1a65c03

Summary

  • Add support for List and Set to RandomString annotation
  • Add methods to print log messages

What's Changed in 0.9.5

  • Bump JUnit Reporter extension to version 0.9.2 in c75007d
  • Bump Mockito to version 5.21.0 in 7d35f05
  • Add support for List and Set to RandomString annotation in 69cc438
  • Bump PMD extension to version 1.4.0 in 714ab71
  • Add SpotBugs dependencies and related fixes in 20bd36f
  • Use shields.io for badges instead of badgen.net in caf55f8
  • Bump Checkout actions to version 6 in a81b73c
  • Add methods to print log messages in 64b7f55
  • Ensure reporter step is always activated in 908368b
  • Bump JUnit to version 6.0.1 in d2e30a8
  • Clean up Javadoc in 55b6674

Full Changelog: 0.9.4...0.9.5

0.9.4

Choose a tag to compare

@ethauvin ethauvin released this 30 Sep 10:17
4092abc

Summary

  • Refactor RetryExtension to allow for delay between retries

What's Changed in 0.9.4

  • Refactor RetryExtension to properly handle the specified delay in 9563df8
  • Add retry delay parameter in 2718da5

Full Changelog: 0.9.3...0.9.4

0.9.3

Choose a tag to compare

@ethauvin ethauvin released this 29 Sep 01:39
e065158

Summary

  • New EnabledOnCi annotation
  • New RetryTest annotation
  • Capture and store stdout/stderr output chronologically

What's Changed in 0.9.3

  • Fix reporter steps in f067fbd
  • Implement EnabledOnCi annotation in 979a1b3
  • Minor Javadocs cleanups in 2db6d40
  • Implement RetryExtension and RetryTest annotation in fbbf8e6
  • Bump Mockito to version 5.20.0 in a33d414
  • Run reporter on tests failure in d1a5a03
  • Bump PMD extension to version 1.3.3 in fa01d5d
  • Use platform-specific line separator in tests where applicable in 19f3af4
  • Capture stdout and stderr in the order they were received and preserve the chronological order of output between the two streams in bc385dd

Full Changelog: 0.9.2...0.9.3

0.9.2

Choose a tag to compare

@ethauvin ethauvin released this 31 Aug 19:10
e9185fb

Summary

  • New methods to retrieve lines from captured output.

What's Changed in 0.9.2

  • Implement methods to get lines for captured output in bcd8d84

Full Changelog: 0.9.1...0.9.2

0.9.1

Choose a tag to compare

@ethauvin ethauvin released this 31 Aug 19:07
c9b6e54

Summary

  • New CaptureOutput annotation

What's Changed in 0.9.1

  • Implement CaptureOutput annotation and related extension in 1701b2e
  • Bum JUnit Reporter extension to version 0.9.1 in 6c5e48e

Full Changelog: 0.9.0...0.9.1

0.9.0

Choose a tag to compare

@ethauvin ethauvin released this 29 Aug 00:00
7d7696a

Summary

  • Initial release