Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Xpect Test case issue(How to refer an other xtext file content inside the xpect test case)
Xpect Test case issue [message #1798664] Thu, 22 November 2018 07:25 Go to next message
Eclipse UserFriend
Hello All,

I have 2 xtext files one file with the extension *.tmp and another file with an extension *.cfm, the content of cfm file can be referred inside the tmp file.

Now i want to write a xpect test case for tmp file which is referring the cfm file elements.

How to achieve this?

Thanks
Re: Xpect Test case issue [message #1798665 is a reply to message #1798664] Thu, 22 November 2018 07:27 Go to previous messageGo to next message
Eclipse UserFriend
this should work ootb if you configure xpect correctly
(both dsls on path of test project, xpect registration of languages with plugin.xml)
Re: Xpect Test case issue [message #1798670 is a reply to message #1798665] Thu, 22 November 2018 09:21 Go to previous messageGo to next message
Eclipse UserFriend
Thank you for your answer,

How to add a xpect registration of languages inside plugin.xml,

What is the extension?

Thank you
Re: Xpect Test case issue [message #1798671 is a reply to message #1798670] Thu, 22 November 2018 09:41 Go to previous message
Eclipse UserFriend
<extension point="org.eclipse.xpect.fileExtensions">
				<fileExtension
					emfResourceFactory="org.foo.ResourceFactory"
					fileExtension="foo, bar"
					xtextLanguageName="org.foo.Foo"
					xtextResourceServiceProvider="org.foo.ResourceServiceProvider"
					xtextResourceUIServiceProvider="org.foo.ResourceUIServiceProvider"
					xtextRuntimeModule="org.foo.RuntimeModule"
					xtextUiModule="org.foo.uiModle">
				</fileExtension>
			</extension>
Previous Topic:Working with unordered groups
Next Topic:Grammar parsing problem
Goto Forum:
  


Current Time: Thu Jun 12 22:14:13 EDT 2025

Powered by FUDForum. Page generated in 0.04516 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top