Examples of JstdRunElement


Examples of com.intellij.javascript.testFramework.JstdRunElement

      }
      TestFileStructurePack pack = TestFileStructureManager.fetchTestFileStructurePackByJsFile(jsFile);
      if (pack == null) {
        return null;
      }
      JstdRunElement jstdRunElement = pack.getJstdRunElement(psiElement);
      if (jstdRunElement != null) {
        Project project = jsFile.getProject();
        JstdRunSettings.Builder builder = new JstdRunSettings.Builder();
        builder.setJSFilePath(getPath(virtualFile));
        builder.setTestCaseName(jstdRunElement.getTestCaseName());
        List<VirtualFile> jstdConfigs = JstdTestFilePathIndex.findConfigFilesInProject(virtualFile, project);
        if (jstdConfigs.size() == 1) {
          builder.setConfigFile(getPath(jstdConfigs.get(0)));
        }
        String testMethodName = jstdRunElement.getTestMethodName();
        if (testMethodName != null) {
          builder.setTestType(TestType.TEST_METHOD);
          builder.setTestMethodName(testMethodName);
        } else {
          builder.setTestType(TestType.TEST_CASE);
View Full Code Here

Examples of com.intellij.javascript.testFramework.JstdRunElement

  @Override
  @Nullable
  public JstdRunElement findJstdRunElement(@NotNull TextRange textRange) {
    for (JstdTestCaseStructure testCaseStructure : myTestCaseStructures) {
      JstdRunElement jstdRunElement = testCaseStructure.findJstdRunElement(textRange);
      if (jstdRunElement != null) {
        return jstdRunElement;
      }
    }
    return null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.