This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-04-16
Channels
- # announcements (1)
- # aws (6)
- # babashka (17)
- # beginners (30)
- # calva (12)
- # cider (25)
- # circleci (2)
- # clojure (42)
- # clojure-australia (8)
- # clojure-czech (1)
- # clojure-europe (30)
- # clojure-france (52)
- # clojure-italy (2)
- # clojure-nl (16)
- # clojure-serbia (3)
- # clojure-uk (10)
- # clojurescript (40)
- # core-async (5)
- # cursive (24)
- # datalog (7)
- # datomic (8)
- # emacs (4)
- # events (1)
- # figwheel-main (3)
- # fulcro (2)
- # helix (5)
- # heroku (1)
- # kaocha (6)
- # leiningen (3)
- # malli (11)
- # music (5)
- # off-topic (20)
- # practicalli (1)
- # re-frame (4)
- # react (8)
- # reitit (14)
- # rewrite-clj (5)
- # rum (2)
- # schema (2)
- # shadow-cljs (23)
- # vrac (28)
- # wasm (4)
- # xtdb (12)
- # yada (5)
Hi! I’m working on a testing tool and I had a question about kaocha’s focus feature. Given the following test plan:
a
- b
- c
- d
- e
- f
- g
- h
- i
- j
Which of the following test plans does focusing on d
result in? (yes I know it actually uses skip, but setting that aside for a moment)
Option 1
a
- b
- c
- d
Option 2
d
Option 3
a
- b
- c
- d
- f
- i
This is particularly important in the tool I’m working on where branch nodes can contain setup/teardown code that should only run if there are leaves underneath them, i.e. option 1 is what I’m looking forI believe it's option 1, all tests that have a child that is focused are not skipped. But easy enough to verify with --print-test-plan
.
I'm not sure what the difference between 1 and 2 is, since I don't think a, b, or c would contain tests. (But maybe I'm misunderstanding your plans?)
I don't think d 'loses' its context when focusing, though, if that's what you're asking.