Skip to content

Selenium: cover Clangd LS functionality by selenium test#9875

Merged
SkorikSergey merged 15 commits intomasterfrom
testClangLS
Jun 12, 2018
Merged

Selenium: cover Clangd LS functionality by selenium test#9875
SkorikSergey merged 15 commits intomasterfrom
testClangLS

Conversation

@SkorikSergey
Copy link
Copy Markdown
Contributor

@SkorikSergey SkorikSergey commented May 30, 2018

What does this PR do?

This PR creates ClangdFileEditingTest selenium test which cover the Clangd language server using use cases from Language servers test plan - https://github.com/eclipse/che/wiki/Test-plan-for-checking-Language-servers.

What issues does this PR fix or reference?

#9811

@SkorikSergey SkorikSergey added status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. kind/task Internal things, technical debt, and to-do tasks to be performed. team/che-qe labels May 30, 2018
@SkorikSergey SkorikSergey requested a review from vparfonov as a code owner May 30, 2018 13:32
@SkorikSergey
Copy link
Copy Markdown
Contributor Author

ci-test


@Test(priority = 1)
public void checkFindDefinitionFeature() throws Exception {
prepareFile(ISEVEN_H, ISEVEN_H_CONTENT);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's hard to understand what we are updating file for.
IMHO it's better to name text chunks meaningfully to express what we are changing and which operation it is aimed to test.


/** @author Skoryk Serhii */
@Test(groups = {TestGroup.DOCKER})
public class ClangdFileEditingTest {
Copy link
Copy Markdown
Contributor

@dmytro-ndp dmytro-ndp May 31, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clangd - is an open source implementation of the Language Server Protocol that leverages Clang. We are not editing it in the test. Actually, we are testing Clang file editing here.


// check error marker message
editor.goToCursorPositionVisible(5, 1);
editor.waitMarkerInvisibility(ERROR, 5);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would look clearer if you divide separate steps by empty rows.

+ " std::cout << \"Hello World!\" << std::endl;\n"
+ " return 0;\n"
+ "}";
private static final String ISEVEN_H_CONTENT =
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, add empty rows between the constants to improve readability.

import org.testng.annotations.Test;

/** @author Skoryk Serhii */
@Test(groups = {TestGroup.DOCKER})
Copy link
Copy Markdown
Contributor

@dmytro-ndp dmytro-ndp May 31, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It have to be run on the both infrastructures: docker and OCP, IMHO.

@codenvy-ci
Copy link
Copy Markdown

ci-test build report:
Build details
Test report
selenium tests report data
docker image: eclipseche/che-server:9875
https://github.com/orgs/eclipse/teams/eclipse-che-qa please check this report.

@SkorikSergey SkorikSergey merged commit af91984 into master Jun 12, 2018
@SkorikSergey SkorikSergey deleted the testClangLS branch June 12, 2018 11:39
@benoitf benoitf removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Jun 12, 2018
@benoitf benoitf added this to the 6.7.0 milestone Jun 12, 2018
hbhargav pushed a commit to hbhargav/che that referenced this pull request Dec 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/task Internal things, technical debt, and to-do tasks to be performed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants