testing

plexus 2022-03-28T14:06:45.781939Z

Hey folks, I've been working recently on a test factory library, and just put out a first release. It's still very early days but it's ready for people to take it for a test run. https://github.com/lambdaisland/facai

🚀 2
plexus 2022-03-28T14:07:50.453839Z

Talking to both clients and individuals it seemed several people were missing something like this, especially those that had worked with something similar in other languages (e.g. FactoryBot in Ruby). If that's you then I definitely would love to hear from you!

plexus 2022-03-28T14:09:33.609649Z

Part of the value of something like this is that it integrates easily with the database, but sadly things aren't exactly standardized when it comes to mapping clojure data to relational tables. Datalog dbs are a bit easier. We've added an initial implementation of next.jdbc and datomic support, and tried to make especially the jdbc support configurable enough, but this is an area where some real-world feedback would be helpful.

mauricio.szabo 2022-03-28T16:50:02.080829Z

Sounds wonderful for me! Just a question, is there a "function API" that we could use, instead of defactory?

plexus 2022-03-28T17:17:36.730539Z

You can pass maps to build-val and friends

plexus 2022-03-28T17:17:57.826869Z

Have a look at the code, there's not a lot of magic

2022-03-28T18:05:46.360689Z

Ayyy I built a FactoryBot like library for Typescript, was thinking about something like this for Clojure. Can't wait it read this over, see how it feels in use

2022-03-28T18:17:19.025309Z

Want questions/comments here?

plexus 2022-03-28T19:54:31.605049Z

Or in #lambdaisland or in DM, it's all good

👍 1
plexus 2022-03-28T19:54:40.411629Z

*good