[jbosstools-issues] [JBoss JIRA] (JBIDE-20442) Create SWTBot integration tests for tern related features

Vlado Pakan (JIRA) issues at jboss.org
Tue Aug 25 15:05:42 EDT 2015


    [ https://issues.jboss.org/browse/JBIDE-20442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13101680#comment-13101680 ] 

Vlado Pakan commented on JBIDE-20442:
-------------------------------------

*BASIC JAVASCRIPT SUPPORT AND TERN INITIALIZATION*
# Create New JavaScript project javascript-test
# Create New JavaScript source file test.js within javascript-test project
# Invoke Code Assist on empty line in test.js
# ASSERT: First item within Code Assist proposals has title: "Calculating completion proposals took too long. ...." It means Tern was not fully initialized yet. Content Assist contains also some JSDT proposals for example from Window or Global objects
# Wait for a moment
# Invoke Code Assist on empty line in test.js again
# ASSERT: Tern Code Assist proposals are available e.g. there are items from ECMA5 or browser object again also JSDT proposals have to be available
# Open JavaScript > Modules properties of javascript-test project
# ASSERT: Browser, ECMAScipt (v5) and Completion Guess modules are checked

> Create SWTBot integration tests for tern related features
> ---------------------------------------------------------
>
>                 Key: JBIDE-20442
>                 URL: https://issues.jboss.org/browse/JBIDE-20442
>             Project: Tools (JBoss Tools)
>          Issue Type: Task
>          Components: jsp/jsf/xml/html-source-editing
>    Affects Versions: 4.3.0.Beta2
>            Reporter: Denis Golovin
>            Assignee: Denis Golovin
>            Priority: Critical
>             Fix For: 4.3.0.CR1
>
>
> There should be set of SWTBot tests that would cover functionality related to tern.java and angularjs-eclipse integration. These tests would simplify migration to new tern.java and angularjs-eclipse releases.
> Current process for migration to new version of tern-java/angularjs-eclipse is manual. Steps below describe current approach:
> 1. Manual mirroring of latest tern-java/angularjs-eclipse versions to local filesystem;
> 2. Build jbosstools-jst with local mirrors and run JUnit tests;
> 3. Install latest tern-java and angularjs-eclipse form mirrors done in (1) into JBDS nightly build from master branch (it has open version range for tern features)  and restart;
> 4. Run manual tests;
> 5. If (2) and (3) idenify no problems then local mirrors should be published to http://download.jboss.org/jbosstools/updates/requirements/tern and http://download.jboss.org/jbosstools/updates/requirements/angularjs respectively;
> 6. Update jbosstools-jst with new versions for tern-java/angularjs-eclipse and push local branch to upstream 
> With step 4 implemented as SWT bot tests and automated mirroring for tern-java and angularjs-eclipse (see jenkins job here https://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/All/job/jbosstools-tern-mirror/) we can fully automate the process above.
> QA also can skip step (1) and just use external p2 repos:
> * http://oss.opensagres.fr/tern.repository/1.0.0-SNAPSHOT/
> * http://oss.opensagres.fr/angularjs-eclipse/1.0.0-SNAPSHOT/
> in step (2) by building jbosstools-jst as:
> {code}mvn clean install -Dtern.repo.url=http://oss.opensagres.fr/tern.repository/1.0.0-SNAPSHOT/ -Dhttp://oss.opensagres.fr/angularjs-eclipse/1.0.0-SNAPSHOT/{code}
> and installing latest versions for step (3).



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jbosstools-issues mailing list