Skip to content

test objects are not being pulled during the build with eo-maven-plugin #4030

@h1alexbel

Description

@h1alexbel

In the external EO library, where it has its own objects, we building the project with eo-maven-plugin with this configuration:

<configuration>
  <foreign>${project.build.directory}/eo-foreign.csv</foreign>
  <foreignFormat>csv</foreignFormat>
</configuration>
<executions>
  <execution>
    <id>compile</id>
    <goals>
      <goal>register</goal>
      <goal>compile</goal>
      <goal>transpile</goal>
      <goal>xmir-to-phi</goal>
      <goal>phi-to-xmir</goal>
      <goal>copy</goal>
      <goal>unplace</goal>
      <goal>unspile</goal>
    </goals>
    <configuration>
      <keepBinaries>
        <glob>EOorg/EOeolang/EOdom/**</glob>
      </keepBinaries>
    </configuration>
  </execution>
  <execution>
    <id>test-compile</id>
    <phase>generate-test-sources</phase>
    <goals>
      <goal>register</goal>
      <goal>compile</goal>
      <goal>xmir-to-phi</goal>
      <goal>phi-to-xmir</goal>
      <goal>transpile</goal>
    </goals>
    <configuration>
      <scope>test</scope>
      <sourcesDir>${project.basedir}/src/test/eo</sourcesDir>
      <targetDir>${project.build.directory}/eo-test</targetDir>
      <phiInputDir>${project.build.directory}/eo-test/1-parse</phiInputDir>
      <phiOutputDir>${project.build.directory}/eo-test/phi</phiOutputDir>
      <unphiInputDir>${project.build.directory}/eo-test/phi</unphiInputDir>
      <unphiOutputDir>${project.build.directory}/eo-test/unphi</unphiOutputDir>
      <addSourcesRoot>false</addSourcesRoot>
      <addTestSourcesRoot>true</addTestSourcesRoot>
      <generatedDir>${project.build.directory}/generated-test-sources</generatedDir>
      <placeBinariesThatHaveSources>true</placeBinariesThatHaveSources>
    </configuration>
  </execution>
</executions>

During lint goal we are getting unit-test-missing warning on external objects (try, nan, dataized, string, number, etc.) though we have them:

org.eolang.try:0 Tests "org.eolang.try-tests" not found for "org.eolang.try" (unit-test-missing)
[WARNING] org.eolang.nan:0 Tests "org.eolang.nan-tests" not found for "org.eolang.nan" (unit-test-missing)
[WARNING] org.eolang.dataized:0 Tests "org.eolang.dataized-tests" not found for "org.eolang.dataized" (unit-test-missing)
[WARNING] org.eolang.string:0 Tests "org.eolang.string-tests" not found for "org.eolang.string" (unit-test-missing)
[WARNING] org.eolang.number:0 Tests "org.eolang.number-tests" not found for "org.eolang.number" (unit-test-missing)

Seems that *-test.eo objects are not being pulled from home during the execution of eo-maven-plugin, and thats why we are getting those warnings.

Full story here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions