How to analyse Selenium test script through SonarQube

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube 8.1)
  • what are you trying to achieve

I have CSproject and integrated Selenium test in that, need to analyze selenium test script in SonarQube , Can anyone help me out of this

  • what have you tried so far to achieve this
    SonarQube is Analaysing all the backened frontend code but need analaysis this selenium test script as well

Thank
Prajith

Hey there.

I couldn’t actually tell you what a Seleinum Code Snippet looks like (what language it is written in, etc.). Could you provide an example?

Best regards,

Colin

Hi Colin ,
Thanks for your response
Its Written in CSharp , Basically Selenium test is running successfully and doing all the testing , But we need to run those Selenium test code in SonarQube.If any information you required let me know.

Thank you

Greetings,

On purpose, we don’t try and scan Test code in SonarQube. That’s something we might change in the future, but right now, our analysers are not really designed to raise relevant issues on Test code.

That said, some fiddling with analysis parameters and the Detection of Test Projects could help you out.

Colin