[
https://issues.jboss.org/browse/JBIDE-8600?page=com.atlassian.jira.plugin...
]
Yahor Radtsevich commented on JBIDE-8600:
-----------------------------------------
*Profiling results for VPE JUnits (top 10):*
||Method||Execution Time (not including other VPE methods that it calls)||
|org.jboss.tools.vpe.base.test.TestUtil.delay(long)|19,91%|
|org.jboss.tools.vpe.base.test.ProjectsLoader.getProject(java.lang.String)|13,60%|
|org.jboss.tools.vpe.ui.test.TestUtil.delay(long)|6,29%|
|org.jboss.tools.vpe.base.test.VpeTest.performTestForVpeComponent(org.eclipse.core.resources.IFile)|5,21%|
|org.jboss.tools.vpe.editor.VpeEditorPart.createPartControl(org.eclipse.swt.widgets.Composite)|5,17%|
|org.jboss.tools.vpe.base.test.VpeTest.closeEditors()|4,98%|
|org.jboss.tools.vpe.ui.test.ProjectsLoader.removeProject(org.eclipse.core.resources.IProject)|4,26%|
|org.jboss.tools.vpe.base.test.ComponentContentTest.performContentTestByFullPath(java.lang.String)|2,38%|
|org.jboss.tools.vpe.editor.context.VpePageContext.getIncludeTaglibs()|2,27%|
|org.jboss.tools.vpe.base.test.VpeTest.openEditor(org.eclipse.ui.IEditorInput)|2,24%|
|*Total*|*66.31%*|
*Thus the parts that need to be optimized in the first place:*
# Delays (now ~26%)
# Projects opening/closing (now ~18%)
# VPE opening/closing (now ~12%)
Speed up executing of VPE tests
-------------------------------
Key: JBIDE-8600
URL:
https://issues.jboss.org/browse/JBIDE-8600
Project: Tools (JBoss Tools)
Issue Type: Task
Components: Visual Page Editor core, Visual Page Editor Templates
Reporter: Yahor Radtsevich
Assignee: Yahor Radtsevich
Fix For: 3.3.0.M1
Now we have ~800 JUnit tests. It takes ~20 min to execute all of them, which is too
much.
The ideas how to speed them up:
# Split them up in ratio 80%/20% where 80% - the least probable tests to fall and 20% -
the most. Then execute mainly the 20% part while developing.
# Try to optimize tests using profiler.
# Run in parallel?
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira