I still have to go through Slack posts to find older details, but in the meantime
Add parent fixture as receiver to block in given_
Speed up test finding in the Minutest engine when running tests from a single class
- derivedContext -> context_
Experimental support for perturbation testing.
Publishing of v2 to Maven Central
- before -> beforeEach
- after -> afterEach
- fixture -> given
- modifyFixture -> beforeEach
- deriveFixture -> given_
- test and test_ no longer take a TestDescriptor parameter to their block, but do supply the fixture as both receiver and parameter. The old versions are available as old_test and old_test_.
DSL functions with TestDescriptors are available in an Instrumented object.
The JUnit 5 (not Jupiter) test engine is now working well. It should find methods or top-level functions annotated @Testable, and you can even point to methods in IntelliJ and run them. Add this to Gradle to enable
tasks.withType<Test> {
useJUnitPlatform {
includeEngines(
"junit-jupiter",
"minutest" <-- This
)
}
Run tests in each root context in parallel by setting a system property dev.minutest.parallel. Parallel running isn't on by default yet, but seems solid.
As v.1.12.0 but published to Maven Central (if all goes well)
This release is preparing for a v2, with some DSL improvements, and parallel test running by default.
Run tests in each root context in parallel by setting a system property dev.minutest.parallel.
Lots of internal rework to support our own test engine and speeding things up.
Starting to decouple the DSL from the test building.
Some very minor API changes that I don't think anyone will notice.
Experimental support for Scenarios
Internal changes
Jump to source in IntelliJ now works - double-click on a test to go to its definition. This works for contexts too, but from the right-click menu.
Experimental support for Given When Then scenarios.
Internal changes to increase type safety, reduce object allocation and simplify.
A rootContext {
function to avoid rootContex<Unit> {
, thanks to Robert Stoll
Internal changes to reduce casting and increase type safety, thanks to Robert Stoll.
Internal changes to support safe transforms.
Running under Java 9, 10, 11, 12.
Annotation processing changes. These are not backward-compatible, but apply only to experimental features that I suspect nobody but the developers are using.
-
Changes the precedence of multiple test annotations so that they apply in a human sort of way.
-
Removes the
transform
parameter to the top levelrootContext
call in favour of usingRootTransforms
in a predicatable way. -
Makes
RootTransform
a typealias forNodeTransform<Unit>
and makes it a property ofTestAnnotation
rather than a mixin
Fixes JUnit 4 Rules support to work properly in the case of derived fixtures changing the fixture type.
Add experimental support for flattening a Sequence of fixtures - the plan is to use this to support Property Based Tests.
See FlatteningExampleTests
.