<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>KeithYokoma</author_name>
  <author_url>https://blog.hatena.ne.jp/KeithYokoma/</author_url>
  <blog_title>Infinito Nirone 7</blog_title>
  <blog_url>https://blog.keithyokoma.dev/</blog_url>
  <categories>
  </categories>
  <description>AndroidX Room はテスト用にライブラリを提供していて、MigrationTestHelper を使うと Room Database のマイグレーションがテストできます。 ただ現状 MigrationTestHelper を使ったテストの例はどれも instrumented test となっていて、物理あるいは仮想デバイス上でテストを動かすことになります。 この記事ではRobolectric をつかってマイグレーションのテストを JVM 上で実行する手順を説明します。 ビルドスクリプトの準備 Robolectric でテストを実行するにあたり、事前準備としてデータベースのスキーマを …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.keithyokoma.dev%2Fentry%2F2026%2F05%2F19%2F151226&quot; title=&quot;Room の Migration を Robolectric でテストする - Infinito Nirone 7&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>2026-05-19 15:12:26</published>
  <title>Room の Migration を Robolectric でテストする</title>
  <type>rich</type>
  <url>https://blog.keithyokoma.dev/entry/2026/05/19/151226</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
