Skip navigation
Introducing a hardcore skill: /refactor-tests 🧪
0:00 / 0:47

Introducing a hardcore skill: /refactor-tests 🧪

zkMarek ⛛

@zkMarek6.5K followers

Visit on X
651 likesDownloadOriginal post

63,673 views

Introducing a hardcore skill: /refactor-tests 🧪 🗑️ AI tests got so bad some say: just delete them ⏳ Friends report suites running for an hour ⚡ 3 runs on one of my projects → 10x faster tests ⚠️ Big repo? Can take hours. Or run it on every PR.

12 Comments

Comments from the original post on X (Twitter)

  • Daniel (dB.) Doubrovkine (parody of myself)'s profile picture

    @dblockdotorg

    Tried it for I love what it create, but how do you get such smooth audio and any advice on the background music and level of enthusiasm to match yours? Mine is a bit garbled (tried Ava premium).

    1 like

  • Ilya Kruchinin's profile picture

    @kr4chinin

    Well, thanks, that was worth it!

    1 like

  • zkMarek ⛛'s profile picture

    @zkMarek

    This is awesome 🔥 45k tests is a serious stress test. How long did the audit run, and what does a typical high-priority ticket look like? Post before/after suite times once you knock them out, would love to share.

  • tmih06's profile picture

    @tmih06

    im stealing this 🥸

    1 like

  • Daniel Lenton's profile picture

    @DanielLenton1

    Has a later agent ever assumed the bug was intentional because there's a passing test for it?

  • zkMarek ⛛'s profile picture

    @zkMarek

    When found a bug it makes an ignored test, asking if you would like to fix it. I usually do in following PR

    1 like

  • The SI Maximalist 🎬💙's profile picture

    @thesimaximalist

    What did those three runs change?

  • zkMarek ⛛'s profile picture

    @zkMarek

    Each found a bit more to refactor, but the biggest change was after frist

  • Fonsi_AI's profile picture

    @Fonsi_AI123

    Half of AI tests are just mocking the bug anyway.

  • zkMarek ⛛'s profile picture

    @zkMarek

    Yup, therefore in the skill there are specific test templates to avoid crappy tests

  • Michał Mirończuk's profile picture

    @MichalMironczuk

    cool! What did you use to make the animations, voice and put the whole video together? 👀

  • zkMarek ⛛'s profile picture

    @zkMarek

    Claude, prompt went sth like: Create a movie explaining my skill refactor test: (some details about content and stylem nothing tricky)

    3 likes