Elixir/Phoenix: How to do unit tests for models without using Ecto?
<p>I'm building a elixir phoenix app using a custom database adapter to connect to OrientDB. So I generated the base app with the <code>--no-ecto</code> option since I'm not using Ecto.</p>

<p>I'm building custom models and custom validations but of course want to do unit testing. </p>

<p>If I try to include ModelCase in my unit tests like so:</p>

<pre><code>defmodule App.UserTest do
  use App.ModelCase

end
</code></pre>

<p>I get the error </p>

<pre><code>module App.ModelCase is not loaded and could not be found
</code></pre>

<p>Which is probably because it is part of Ecto.</p>

<p>If I don't include it, the code fails later, telling me that </p>

<pre><code>undefined function test/2
</code></pre>

<p>How can I deal with that?</p>