Request for new sonar-webdriver-plugin to be deployed to Marketplace

Name plugin
Sonar WebDriver Plugin

URL

Description
Recently I have developed a new plugin named the Sonar WebDriver Plugin. The Sonar WebDriver Plugin is a static code analysis tool that helps following best practices for writing WebDriver tests. This plugin is aimed for WebDriver (Selenium/Appium) test code. The test code is usually written mainly by QA engineers, but also by developers.

As there are many great static code analysis checks for application code, and I encountered this myself in practice, there is currently not a Sonar plugin (at least I could not find one) that scans test code helping to write reliable and maintainable functional tests. Here I do not mean unit or integration tests but functional tests that are on a higher level. Tests based on WebDriver are an example of these functional tests that exist in the industry.

What’s next
It would be great if this plugin can be added to the Sonar Marketplace to gain more traction and usage to improve the plugin more and more by feedback from the community. Is this possible?

Hi,

One of the things we have to check off to get this into the Marketplace is testing (and approval) by SonarSource staff, which usually means me. Since I’ve never written or used WebDriver tests, can you point me to a repository that contains some that I can use for testing?

BTW, I haven’t looked at all at your project yet, so I can’t speak to any of the other requirements. I’ll come back to that later.

 
Ann

Thanks for your quick response. Here is an example project based on WebDriver: https://github.com/kwoding/webdriver-cross-device-test-example

I think writing WebDriver tests is known to most QA (automation) engineers, but not so much to developers, the more reason to gain more traction for this to get more feedback :wink:

Hi,

I haven’t forgotten this. I hope to come back to it soon.

 
Ann

Hi,

Sorry for the delay. This looks mostly good, except I need to see where it’s analyzed (with a passing Quality Gate!) on SonarCloud.

 
Ann

No problem, here is the analysis on SonarCloud: https://sonarcloud.io/dashboard?id=kwoding_sonar-webdriver-plugin

Hi,

Thanks for the link. I see your project has only been analyzed once. Is that because you haven’t committed since the 25th or because you haven’t automated analysis? The latter is pretty easy to do with travis-ci.org, I understand.

 
Ann

Both actually, no new commits, I still have to pick up the automated analysis (I do already have an automated CI with travis for builds)

1 Like

Hi,

You’re in!

 
Ann

BTW, you didn’t list SQ version compatibility, so I defaulted to 7.3+. Let me know if it goes back further than that.

 
Ann

In the pom I listed:
<sonarQubeMinVersion>6.7</sonarQubeMinVersion>

Is it maybe not the right tag?

Awesome, thanks! Does it take some time to be published on sonarplugins.com?

Hi,

I don’t generally (think to) read poms to get that information. :slight_smile:

I’ve updated the Marketplace.

 
Ann

Great! However, I couldn’t find the plugin on sonarplugins.com yet, does it take some time before it appears there?

Hi,

No one at SonarSource has anything to do with that site. I can only add you to the Plugin Library page, which I had forgotten to do, so thanks for the reminder!

 
Ann

Ok great, good to know, thanks!

Hi, can the minVersion of this plugin be updated to ABOVE SonarQube version 6.7.5?
By the way, I also added the automated analysis via sonarcloud to the CI.

Hi,

To be clear, you’re saying that version 1.1.0 is not compatible with 6.7.*?

 
Ann

Sorry, I found the issue in the meantime, will fix it.