https://pantsbuild.org/ logo
#development
Title
# development
h

hundreds-father-404

04/12/2022, 11:05 PM
Just wrote my first my first
@rule_helper
. Bless you @bitter-ability-32190 😭😍
🔥 2
💯 1
I'm very happy that this lets me add pretty detailed comments to a very niche part of the rule, without worrying about making the overall rule too long
b

bitter-ability-32190

04/12/2022, 11:12 PM
Make sure smash that like button and hit "subscribe"
🙌 3
😂 3
h

hundreds-father-404

04/12/2022, 11:15 PM
Have you experimented with testing these helpers? I wonder if we can use something like
run_rule_with_mocks
b

bitter-ability-32190

04/12/2022, 11:21 PM
No not at all 😅 Mocking is certainly an option. Don't see why it wouldn't work
👍 1
h

hundreds-father-404

04/12/2022, 11:22 PM
Cool. I might want to play around with that. I am thinking we should not try to hook up
RuleRunner
- at that point, test the whole rule as ~ integration test But using mocks could be useful for when the helper has lots of intricate logic
👍 2
b

bitter-ability-32190

04/12/2022, 11:28 PM
I concur