<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>optim-taketo_ito</author_name>
  <author_url>https://blog.hatena.ne.jp/optim-taketo_ito/</author_url>
  <blog_title>OPTiM TECH BLOG</blog_title>
  <blog_url>https://tech-blog.optim.co.jp/</blog_url>
  <categories>
    <anon>Ruby / Ruby on Rails</anon>
    <anon>Testing</anon>
    <anon>Advent Calendar</anon>
  </categories>
  <description>本記事では、15年の歴史を持つモノリシックな Ruby on Rails サービス「OPTiM Biz」における 10万超の単体テスト運用の工夫を紹介しています。 テスト総実行時間は約17時間に及び、全テストを毎回実行するのは非現実的。そのため、以下の取り組みを実施： 50並列実行：GitLab CI の parallel 機能を活用し、実行時間を約1時間まで短縮。 Launchableによるテスト選択：AIを用いて関連性の高いテストを優先実行し、CIリソースを約77%削減。 さらに、今後はセットアップ時間短縮や並列数の最適化、テスト改善（長時間テストや失敗しないテストの見直し）を進める予定です。 テストは「書くだけでなく運用設計が重要」であり、AI活用は開発者体験と品質向上の両立に有効な手段と結論づけています。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech-blog.optim.co.jp%2Fentry%2F2025%2F12%2F08%2F100000&quot; title=&quot;大規模Ruby on Rails開発における、10万ケース単体テストの高速化とAI活用 - OPTiM TECH BLOG&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-12-08 10:00:00</published>
  <title>大規模Ruby on Rails開発における、10万ケース単体テストの高速化とAI活用</title>
  <type>rich</type>
  <url>https://tech-blog.optim.co.jp/entry/2025/12/08/100000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
