In MPS, the language designer can implement tests targeting different language aspects. We decided to implement tests targeting primarily the Editor aspect as this should cover the user’s work complexly (typing, using different kinds of actions, intentions and so on).
We also tested the language by implementing example programs based on our base language. These tests covered the whole process of program development, i.e. writing the code utilizing the language aspects in combination, using the standard libraries and generating and running the C# source code.
- Go to
File -> Settings -> Appearance & Behaviour -> Path Variables
- Add a new variable or modify an already existing variable with the name
project_home
- Set its value to the project's location (e.g.
c:\Users\<username>\MPSProjects\mpscs
)
- Right-click on the solution
CsBaseLanguage.tests
or on the modelEditorAndStructure@tests
located in the virtual folderCsBaseLanguage.tests
insidetests
in the solutionCsBaseLanguage.tests
- Trigger
Run Tests in CsBaseLanguage.tests
- To execute the tests, press Shift+F10
- To build the language, use Ctrl+F9