<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Windymelt</author_name>
  <author_url>https://blog.hatena.ne.jp/Windymelt/</author_url>
  <blog_title>Lambdaカクテル</blog_title>
  <blog_url>https://blog.3qe.us/</blog_url>
  <categories>
    <anon>技術</anon>
    <anon>scala</anon>
  </categories>
  <description>社のSlackでこういう発言を見た。 Go みたいにプログラムとテストを同じ dir に入れたい。 そういえば、テストとコードを同じ場所に配置する言語をよく見かける。こうした、テストとコードを同じ位置に置くという思想を(テストの)コロケーションと呼ぶようだ。 www.mizdra.net この考え方は特に最近の言語やフレームワークでよく見る気がする(一長一短あると思うのでその是非についてはいったん措く)。 さて、Scalaではどうかというと、一般的にソースコードはsrc/mainに、テストはtest/mainに置く。厳密には、これを決めているのはScalaの仕様ではなく、デファクトなビルドツー…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.3qe.us%2Fentry%2F2024%2F09%2F19%2F220400&quot; title=&quot;Scalaでもコードとテストを同じディレクトリに配置できる(テストのコロケーション) - Lambdaカクテル&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>2024-09-19 22:04:00</published>
  <title>Scalaでもコードとテストを同じディレクトリに配置できる(テストのコロケーション)</title>
  <type>rich</type>
  <url>https://blog.3qe.us/entry/2024/09/19/220400</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
