I realise this is not a very good description I it is more a question if you have an idea why a simple json rendering test is slow compared to vtest doing the same thing?
Any idea how to speed up snapshot tests compared to a test with a hardcoded string value?
For example in my tests a test like below tripled in duration when converted to snapshots
func testEncode() {
let sut = try JSONEncoder().encode(Foo.self)
let expected = """
{
...
}
"""
XCAssertEqual(sut, expected)
I realise this is not a very good description I it is more a question if you have an idea why a simple json rendering test is slow compared to vtest doing the same thing?
Any idea how to speed up snapshot tests compared to a test with a hardcoded string value?
For example in my tests a test like below tripled in duration when converted to snapshots