https://kotlinlang.org logo
#compose
Title
# compose
t

theapache64

12/09/2023, 4:52 AM
Why
testTag
is part of the semantics tree? Why it’s not a separate entity?
a

andylamax

12/09/2023, 7:10 AM
Been asking myself this for a while too. It feels wrong for this to be part of production code
t

theapache64

12/09/2023, 7:22 AM
I am fine with testTag in production. My concern is only around testTag being part of the semantics tree.
Anyone can call
clearAndSetSemantics
from top layer for some a11y support and that may destroy the testTag, in turn break tests.
@andylamax can you elaborate the problem u faced of having testTag in production?
a

andylamax

12/09/2023, 8:56 AM
Well for me, its not really a problem perse (found none at all), its just that. We have main source sets and test source sets for a reason. if we start putting test information into our main source sets, the line of distinction becomes blurrier between the two
t

theapache64

12/10/2023, 11:46 AM
Got it
I think my problem can be fixed by using the flag
useUnmergedTree
🙂