Xpect

Eclipse Xpect is a unit- and integration-testing framework to be used for Xtext-based languages. Test data (e.g. expectations) are embedded into programs written in the DSL under tests. Xpect itself is based on Junit; new test methods can be written in Java and are called by the Xpect framework with the test data. Typical Xpect tests include expecting certain error messages, ensuring correct scopes, or specific content assist proposals.

Лицензия

Лицензия

Категории

Категории

CLI Взаимодействие с пользователем
Группа

Группа

org.eclipse.xpect
Идентификатор

Идентификатор

org.eclipse.xpect.parent
Последняя версия

Последняя версия

0.2.0.v20190619
Дата

Дата

Тип

Тип

pom
Описание

Описание

Xpect
Eclipse Xpect is a unit- and integration-testing framework to be used for Xtext-based languages. Test data (e.g. expectations) are embedded into programs written in the DSL under tests. Xpect itself is based on Junit; new test methods can be written in Java and are called by the Xpect framework with the test data. Typical Xpect tests include expecting certain error messages, ensuring correct scopes, or specific content assist proposals.
Ссылка на сайт

Ссылка на сайт

https://projects.eclipse.org/projects/modeling.xpect
Система контроля версий

Система контроля версий

https://github.com/eclipse/xpect

Скачать org.eclipse.xpect.parent

Имя Файла Размер
org.eclipse.xpect.parent-0.2.0.v20190619.pom 8 KB
Обзор

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.eclipse.xpect/org.eclipse.xpect.parent/ -->
<dependency>
    <groupId>org.eclipse.xpect</groupId>
    <artifactId>org.eclipse.xpect.parent</artifactId>
    <version>0.2.0.v20190619</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/org.eclipse.xpect/org.eclipse.xpect.parent/
implementation 'org.eclipse.xpect:org.eclipse.xpect.parent:0.2.0.v20190619'
// https://jarcasting.com/artifacts/org.eclipse.xpect/org.eclipse.xpect.parent/
implementation ("org.eclipse.xpect:org.eclipse.xpect.parent:0.2.0.v20190619")
'org.eclipse.xpect:org.eclipse.xpect.parent:pom:0.2.0.v20190619'
<dependency org="org.eclipse.xpect" name="org.eclipse.xpect.parent" rev="0.2.0.v20190619">
  <artifact name="org.eclipse.xpect.parent" type="pom" />
</dependency>
@Grapes(
@Grab(group='org.eclipse.xpect', module='org.eclipse.xpect.parent', version='0.2.0.v20190619')
)
libraryDependencies += "org.eclipse.xpect" % "org.eclipse.xpect.parent" % "0.2.0.v20190619"
[org.eclipse.xpect/org.eclipse.xpect.parent "0.2.0.v20190619"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

  • ../../org.eclipse.xpect
  • ../../org.eclipse.xpect.ui
  • ../../org.eclipse.xpect.ui.junit
  • ../../org.eclipse.xpect.xtext.lib
  • ../../org.eclipse.xpect.xtext.xbase.lib
  • ../../org.eclipse.xpect.sdk
  • ../../org.eclipse.xpect.xtext.lib.feature
  • ../../org.eclipse.xpect.xtext.xbase.lib.feature
  • ../../org.eclipse.xpect.releng/p2-repository

Xpect

A unit- and integration-testing framework that stores test data in any kind of text files and is based on JUnit. The core focus of Xpect is on testing Xtext languages and supporting the process of designing Xtext languages.

Installation further Information

Go to http://www.xpect-tests.org (and look for an Eclipse update-site).

Nightly builds

Use Jenkins https://ci.eclipse.org/xpect/job/Xpect/job/master/lastSuccessfulBuild/artifact/org.eclipse.xpect.releng/p2-repository/target/repository/

Compile and Build Xpect by Yourself

The Fast Way: Download OOMPH and point it to Xpect.setup.

The Manual Way: Prerequisite: Java 1.8 or newer; Eclipse 3.8 or 4.2 or newer; Xtext 2.9.2.

  1. Clone https://github.com/eclipse/Xpect (this repository)
  2. Import all projects into your Eclipse workspace.
  3. Set target platform to /org.eclipse.xpect.releng/target-platforms/eclipse_4_6_3-xtext_2_9_2/org.eclipse.xpect.target.eclipse_4_6_3-xtext_2_9_2.target (Preferences -> Plug-in Development -> Target Platform)
  4. Run /org.eclipse.xpect/src/org/eclipse/xpect/GenerateXpect.mwe2, /org.xtext.example.arithmetics/src/org/eclipse/xpect/example/arithmetics/GenerateXpect.mwe2, /org.xtext.example.domainmodel/src/org/xtext/example/domainmodel/GenerateDomainmodel.mwe2. Now your projects should be without errors markers. Sometimes, even after these steps, several projects still have error markers. However, this is a refresh problem in Eclipse. Simply clean build the projects with error markers will solve the issues.
  5. Run "mvn clean install" to build artefacts and create a p2 repository (formerly known as update site).
org.eclipse.xpect

Eclipse Foundation

Версии библиотеки

Версия
0.2.0.v20190619