Closed micfort closed 8 months ago
I have not been able to reproduce this while running from the latest version of Epsilon. Can you confirm if you were running this build.xml from inside Eclipse, and could you try again with the latest interim version of Epsilon?
I have just downloaded Epsilon (from https://eclipse.dev/epsilon/download/) on my personal pc, made a copy of all the files, registered the EPackages and ran ANT. Where ANT is run in the same JRE as the workspace.
Then I get the following output
Buildfile: /home/michiel/eclipse/epsilon-2-4/workspace/test/build.xml
main:
[epsilon.eol] Some Message
Test test1 {} failed with status ERROR: Premature end of file.
Test root {} failed with status ERROR: Premature end of file.
Global result: ERROR
BUILD FAILED
/home/michiel/eclipse/epsilon-2-4/workspace/test/build.xml:15: At least one test case had a failure or an error: Premature end of file.
at (/home/michiel/eclipse/epsilon-2-4/workspace/test/test.eunit@3:2-3:40)
at (/home/michiel/eclipse/epsilon-2-4/workspace/test/test.eunit@3:2-3:40)
at (/home/michiel/eclipse/epsilon-2-4/workspace/test/test.eunit@2:18-4:1)
at (/home/michiel/eclipse/epsilon-2-4/workspace/test/test.eunit@0:0-4:1)
Total time: 150 milliseconds
Sorry for the late reply. Which version did you download? Was it the interim version, or the stable one? I could not reproduce your issue with the latest interim version.
The latest stable one, but for people that come across this issue in the future it is as follows:
I have reproduced this issue with 2.4.0, but it appears to have been fixed in 2.5.0.
There seems to be a problem in loading models when loading flexmi models in a EUnit task. When I do that I get a
Test test1 {} failed with status ERROR: Premature end of file.
error. When I convert the models to xmi, the problem dissapears. I have made a small example where it happens. I'm using epsilon 2.4.0.build.xml:
Metamodel.emf:
TestModel.flexmi:
test.eunit: