Been following WWDC a bit. Apple seem to have launched a new testing framework/library for Swift called Swift Testing. Intro movie here .
One thing they got which we don't is the ability to re-run a parameterized test with only a particular parameter. Not sure if we could achieve that for
withData
somehow as well.
Emil Kantis
06/14/2024, 6:56 AM
They also chose to do assertions very similar to power-assert.
Emil Kantis
06/14/2024, 6:57 AM
They seem to run in "soft" error collection mode by default. I.e. letting the whole test finish even if some assertion fails.
Emil Kantis
06/14/2024, 6:58 AM
They instantiate test suites (Specs) per leaf. Not sure if it can be changed at all
s
sam
06/14/2024, 2:10 PM
As part of the new kotest plugin, we should be able to get withData running per row
sam
06/14/2024, 2:10 PM
but it might require some breaking changes to the way we define data tests