Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I found the solution. But it's actually some kind of workaround because I can't image that I usually need to tinker like this (maybe someone knows a better solution?): </p> <p>My main project is a Maven project, in this project I have to set configured the output folders from <strong>/bin...</strong> to /<strong>target/classes</strong>, <strong>target/test-classes</strong> and <strong>target/generated-sources</strong>. I've done that because otherwise my JUnit tests from main project would not find the latest code changes as long as I do not run <strong>mvn install.</strong>. If the output folders are <strong>target/...</strong>, I don't need to run <strong>mvn install</strong> to have the latest changes in my tests.<br> The problem is now that the Android test project doesn't find the compiled sources when they are stored in main project's target. When I set the output folder in main project to bin and run <strong>mvn install</strong>, the Android test project can find the classes now. I have to do this just once. When I set it back to <strong>target</strong>, both my Android tests still run and my main JUnit tests run. When I change the methods in the main project, the test project immediately recognize the changes, so that means it doesn't use binary jar or something (which is indeed very good, although I don't understand why it finds it now, although I set it back to target?). </p> <p><strong>[UPDATE]</strong><br> Adding these two lines to main project's pom to build section solves the issue, so I don't need a workaround anymore.</p> <pre><code> &lt;outputDirectory&gt;bin/classes&lt;/outputDirectory&gt; &lt;testOutputDirectory&gt;bin/test-classes&lt;/testOutputDirectory&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload