Ticket #236 (closed: worksforme)

Opened 4 years ago

Last modified 4 years ago

Running "ant test" in the outer directory failes

Reported by: gregory Owned by: gregory
Milestone: Proteios 2.1 Keywords:
Cc: gregory

Description

Here is the error message

BUILD FAILED
/home/leo/gregory/workspace/proteios/build.xml:191: The following error occurred while executing this line:
/home/leo/gregory/workspace/proteios/build.xml:64: The following error occurred while executing this line:
/home/leo/gregory/workspace/proteios/api/core/build.xml:134: The following error occurred while executing this line:
/home/leo/gregory/workspace/proteios/api/core/test/build.xml:59: Warning: Could not find file /home/leo/gregory/workspace/proteios/api/core/test/src/test.properties to copy.

Change History

comment:1 Changed 4 years ago by gregory

The file had to be manually copied from test.properties.in to test.properties. This is ok. I did that but still when running ant test the following error was printed

test:
     [copy] Copying 1 file to /home/leo/gregory/workspace/proteios/api/core/test/build
    [junit] Testsuite: org.proteios.core.TestAcquisition
    [junit] Tests run: 0, Failures: 0, Errors: 1, Time elapsed: 0.441 sec

    [junit] ------------- Standard Output ---------------
    [junit] (proteios.core                       232 ) Starting Proteios
    [junit] ------------- ---------------- ---------------
    [junit] Testcase: junit.framework.TestSuite@704f459c:	Caused an ERROR
    [junit] Can't find the properties file. Make sure '/proteios.config' is in the CLASSPATH.
    [junit] org.proteios.core.ConfigurationException: Can't find the properties file. Make sure '/proteios.config' is in the CLASSPATH.
    [junit] 	at org.proteios.core.Config.init(Config.java:99)
    [junit] 	at org.proteios.core.Application.start(Application.java:234)
    [junit] 	at org.proteios.core.Application.start(Application.java:215)
    [junit] 	at org.proteios.plugins.mzdata.ApplicationTestSetup.setUp(ApplicationTestSetup.java:56)
    [junit] 	at junit.extensions.TestSetup$1.protect(TestSetup.java:18)
    [junit] 	at junit.extensions.TestSetup.run(TestSetup.java:23)



BUILD FAILED
/home/leo/gregory/workspace/proteios/api/core/test/build.xml:79: Test org.proteios.core.TestAcquisition failed

comment:2 Changed 4 years ago by gregory

  • Status changed from new to assigned

comment:3 Changed 4 years ago by gregory

This can be solved by setting the PROTEIOS_CONFIG variable to eg.

 file:///path/to/proteios.config

and then running ant test We should discuss and agree on a more detailed testing procedure. The result should be documented on Testing.

comment:4 Changed 4 years ago by gregory

  • Milestone changed from 2.0 beta 2 to Future release

comment:5 Changed 4 years ago by fredrik

  • Milestone changed from Proteios Future Release to Proteios 2.1

comment:6 Changed 4 years ago by gregory

  • Cc gregory added
  • severity set to 4

I suggest that "ant test" only runs unit tests that do not require an installed database. We could then add other test targets in e.g. the api/core that test the database/hibernate/data classes mappings alone.

If we can agree on separating testing this way then a new ticket should be written for separating of available unit- and integration tests.

comment:7 Changed 4 years ago by gregory

  • Status changed from assigned to closed
  • Resolution set to worksforme

Using the described procedure at Testing it works.

comment:8 Changed 4 years ago by gregory

  • severity changed from 16 to 4
Note: See TracTickets for help on using tickets.