This doubt refers to MPS 3.1.5 (we're still working on migrating to a more recent version).
We have a set of xml files that contain some information. We also have a language that is responsible for reading those files and create the corresponding instances on our solution.
For that, there's a button on the corresponding editor.
Now, I wanted to do this import from outside MPS and thought that the easier way was to have a test for invoking this functionality (as it's easily executable using ANT).
I can run the test I created, I see it running and creating the expected instances (I've log to prove it) HOWEVER, they don't show up in the model at the end of the execution... they seem to have been added to some temporary model, not to the model we want.
".getModel().isReadOnly()" says "false"; and, while running, concepts are added to it...
The log writes down the correct model name (and uses the correct information that exists on that model, like the xml files location). Before the test ends I iterate over all instances of the model and log them and they are there...
Is the test creating a copy of the original model to work on?
Is this possible? Is there another way to do this import (without opening mps)?
Porto - Portugal