Package jetbrains.mps.project.facets
Interface TestsFacet
- 
- All Superinterfaces:
 GenerationTargetFacet,SModuleFacet
- All Known Implementing Classes:
 TestsFacetImpl
public interface TestsFacet extends SModuleFacet, GenerationTargetFacet
This facet implies tests are generally written in Java (MPS compiles files fromgetTestsOutputPath()) 
- 
- 
Field Summary
Fields Modifier and Type Field Description static StringFACET_TYPE 
- 
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default IFilegetOutputCacheLocation(SModel model)Facilitates keeping related generated artifacts, e.g.default IFilegetOutputCacheRoot()default IFilegetOutputCacheRoot(SModel model)default IFilegetOutputLocation(SModel model)Location for output files.default IFilegetOutputRoot(SModel model)XXX See javadoc for JavaModuleFacet#getOutputRoot().IFilegetTestsOutputPath()- 
Methods inherited from interface org.jetbrains.mps.openapi.module.SModuleFacet
getFacetType, getModule, load, save 
 - 
 
 - 
 
- 
- 
Field Detail
- 
FACET_TYPE
static final String FACET_TYPE
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
getTestsOutputPath
@Nullable IFile getTestsOutputPath()
- Returns:
 - test output folder, if there is one. Otherwise returns null.
 
 
- 
getOutputCacheRoot
@Nullable default IFile getOutputCacheRoot()
- See Also:
 JavaModuleFacet.getOutputCacheRoot()
 
- 
getOutputRoot
@Nullable default IFile getOutputRoot(@NotNull SModel model)
Description copied from interface:GenerationTargetFacetXXX See javadoc for JavaModuleFacet#getOutputRoot(). Perhaps, with the rise of textgen-controlled location, GTF shall tell root only and cease answering getOutputLocation()?- Specified by:
 getOutputRootin interfaceGenerationTargetFacet- Parameters:
 model- model of a module this facet is associated with- Returns:
 - FS location where generated files for the model go, same or ancestor of 
GenerationTargetFacet.getOutputLocation(SModel)value, ornullif this facet doesn't manage output of the model 
 
- 
getOutputCacheRoot
@Nullable default IFile getOutputCacheRoot(@NotNull SModel model)
- Specified by:
 getOutputCacheRootin interfaceGenerationTargetFacet- Parameters:
 model- model of a module this facet is associated with- Returns:
 - FS location where auxiliary generated model files go, same or ancestor of 
GenerationTargetFacet.getOutputCacheLocation(SModel)value, ornullif this facet doesn't manage output of the model 
 
- 
getOutputLocation
@Nullable default IFile getOutputLocation(@NotNull SModel model)
Description copied from interface:GenerationTargetFacetLocation for output files. Generally, shall not be nullable, but would like to give implementors freedom to imply own restrictions (and it's safer to override with NotNull than vice versa).- Specified by:
 getOutputLocationin interfaceGenerationTargetFacet- Parameters:
 model- model of a module this facet is associated with- Returns:
 - FS location where generated files for the model go (not necessarily unique for the model, models may share one, unless otherwise noted by implementation)
 
 
- 
getOutputCacheLocation
@Nullable default IFile getOutputCacheLocation(@NotNull SModel model)
Description copied from interface:GenerationTargetFacetFacilitates keeping related generated artifacts, e.g. descriptor, index, debug-related information, which is auxiliary to primary generation artifacts residing inGenerationTargetFacet.getOutputLocation(SModel)- Specified by:
 getOutputCacheLocationin interfaceGenerationTargetFacet- Parameters:
 model- model of a module this facet is associated with- Returns:
 - FS location for auxiliary generated files
 
 
 - 
 
 -