From RUnit to testthat with Coding Agent Support | Mirai Solutions GmbH

We present an interesting case study: we migrated the test suite of our R package 𝗫𝗟𝗖𝗼𝗻𝗻𝗲𝗰𝘁 from 𝗥𝗨𝗻𝗶𝘁 to 𝘁𝗲𝘀𝘁𝘁𝗵𝗮𝘁 using 𝗔𝗜-𝗽𝗼𝘄𝗲𝗿𝗲𝗱 𝗰𝗼𝗱𝗶𝗻𝗴 𝗮𝗴𝗲𝗻𝘁𝘀s. We used 𝗚𝗼𝗼𝗴𝗹𝗲 𝗝𝘂𝗹𝗲𝘀, an asynchronous coding agent, to handle the repetitive, multi-file refactoring work. The process wasn't just about automation, it required careful context preparation, environment setup, and iterative prompt engineering. Key 𝘁𝗮𝗸𝗲𝗮𝘄𝗮𝘆𝘀:   • AI agents excel at tedious, semantics-aware tasks (like fixing 𝘦𝘹𝘱𝘦𝘤𝘵_𝘦𝘲𝘶𝘢𝘭 argument order across dozens of files)   • Managed VM environments reduce risks while maintaining utility   • Combining different AI tools (Jules + Aider) provided robust validation through "third-party" code review This results in a faithfully migrated test suite with equivalent coverage and behavior, achieved faster and with more confidence. Read about our process, challenges, and solutions in our news post. https://lnkd.in/d-QUGDJ4 #rstats #SoftwareDevelopment #AIEngineering #TestAutomation #OpenSource