swift-snapshot-testing
swift-snapshot-testing copied to clipboard
Add option to dump all children
Adding an option to dump to render all children without requiring implementations for the AnySnapshotStringConvertible protocol default value.
Also create several other protocols to control how children are processed for the dump. Not too happy with the naming so happy to change thaat
AnySnapshotStringConvertibleIncludedNodesProvider: Adds an option to choose which nodes to include from the children. If a type implements this protocol it can provide an array of children to include in the dumpAnySnapshotStringConvertibleExcludedNodesProvider: Adds an option to exclude select children from the dump. Useful when a type has unnecessary properties we want to exclude from the dumpAnySnapshotStringConvertibleDumpChildNodes: When this is implemented children will be included forAnySnapshotStringConvertiblesuch asNSObjectsubclassesAnySnapshotStringConvertibleIgnoreChildNodes: Implementing types will ignore all children from the dump.
This is also a solution to #596