Skip to content

Complex Type Support

Closed Sep 18, 2016 100% complete

Provide configuration hooks by kind_of? types of things in args or return values

  • Suture.register_comparator(User, MyUserComparator), for comparing complex types for which == would be inappropriate (equality from the app's perspective differs substantially from "good enough" for Suture's verification steps)

  • Logging: when there's a Suture.verify failu…

Provide configuration hooks by kind_of? types of things in args or return values

  • Suture.register_comparator(User, MyUserComparator), for comparing complex types for which == would be inappropriate (equality from the app's perspective differs substantially from "good enough" for Suture's verification steps)

  • Logging: when there's a Suture.verify failure in test mode, print instructions on building marshalling/comparator adapters

  • QUESTION: should we add a marshaller API as well? Leaning towards no: they should just override marshal_dump if they have something they don't want persisted. (Idea was: Suture.register_marshaller(ActiveRecord::Base, MyActiveRecordMarshaller), which would enable folks to, say, drop the timestamps columns in either direction to make comparison have fewer false negatives)

This milestone is closed.

No open issues remain. View closed issues or see open milestones in this repository.