This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-06-17
Channels
- # announcements (3)
- # beginners (107)
- # calva (13)
- # clj-kondo (5)
- # cljsrn (21)
- # clojure (99)
- # clojure-australia (8)
- # clojure-dev (51)
- # clojure-europe (108)
- # clojure-nl (1)
- # clojure-portugal (3)
- # clojure-spec (9)
- # clojure-uk (10)
- # clojurescript (147)
- # component (7)
- # conjure (5)
- # core-async (2)
- # cursive (11)
- # datomic (11)
- # emacs (14)
- # graalvm (163)
- # graalvm-mobile (317)
- # honeysql (15)
- # introduce-yourself (4)
- # jobs (3)
- # lambdaisland (1)
- # lsp (19)
- # luminus (3)
- # malli (17)
- # off-topic (10)
- # pathom (11)
- # reagent (10)
- # remote-jobs (2)
- # ring (1)
- # shadow-cljs (22)
- # test-check (2)
- # testing (5)
- # tools-deps (39)
Is there any data driven testing library out there? Something that would allow to juggle tests like data, in a similar fashion how reitid does routing?
Can you elaborate on what you're looking for? Kaocha is pretty data driven, treating the testing process as a two phase translation process from config to test plan to test result, each of which is a bunch of nested maps.
Hi there!
Recently, I've been struggling with async testing in ClojureScript. To ease around my pains, I wrote a library called check
, that tries to handle async tests (and keep the same API for Clojure tests) and it's been working really well with me.
The thing is: is heavily inspired by midje
, and I do know that there are people that don't like this approach. So I was thinking: maybe it could be a good idea to have a "clojure-ish" API and a "midje-ish" API, both pointing to the same implementation? Does anyone struggles with async testing also, and would like to talk so I can see if I can make this library more useful, generic, and documented (and at the same time, more popular)? WDYT?
About check
: https://github.com/mauricioszabo/check. Here's an example of an async test in CLJS:
(deftest some-async-thing
(async-test "do some IO and check if things are correct"
(testing "will get current user"
(check (fetch...) => {:body {:user {:id 10 :name "Root"}}}))
(testing "will get all users"
(check (fetch...)
=>
{:body {:users (m/embeds [{:id 10 :name "Root"}])}}))))