Approvals.NAMES
ExtraInformation.Approvals.txt
the old way
There is now a new way to add information to approval names. Previously the way to add additional information was
try (NamedEnvironment ne1 = NamerFactory.asOsSpecificTest()) {
try (NamedEnvironment ne2 = NamerFactory.asMachineNameSpecificTest()) {
Approvals.verify("hello, World!");
}
}
the new way
We now added a cleaner and more thread-safe method of passing in an Options
to the additional information.
Options options = Approvals.NAMES.asOsSpecificTest().and(Approvals.NAMES::asMachineNameSpecificTest);
Approvals.verify("hello, World!", options);
We're not removing the previous way, we're simply adding the new way. In the future, we will update everything underneath to be more thread-safe.
More
We're having a new reporter for TortoiseGIT. Thank you @pfichtner