Ask a Question

Code analysis Via TestComplete

SOLVED
ductreho
Occasional Contributor

Code analysis Via TestComplete

Hello,

 

I'm looking for a way to integrate a code analysis under Test Complete. Is there a plugin or external software able to interact with the code developed under TC

6 REPLIES 6
tristaanogre
Esteemed Contributor

What do you mean by "code analysis"?

 

TestComplete has the following already built in.

2020-03-11 12_54_39-TestComplete - C__MySource_JustForFun_JustForFun.pjs.png

 

2020-03-11 12_56_14-TestComplete - C__MySource_JustForFun_JustForFun.pjs.png


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
ductreho
Occasional Contributor

Hello,

 

I was thinking of an analyzer in the visual studio genre. More advanced than TestComplete.

I would like to go much further than explorer code.
instead of having long functions it is more interesting to have cyclomatic complexity. Have the variables that are not used. Being able to add our own rules ourselves

Cannot link to external code analysis tool but:

- if you have a pipeline in use, perhaps somewhere outiside you can connect on (link to commit in git e.g.)

- if occasional use, you can go to https://jshint.com/ and put your code for review, quite some basic settings available, and moreover you can install locally (node.js) if wanted :

 

firefox_93plAA0lx5.png

 

firefox_E4Qtb07Wyb.png

Un sourire et ça repart

tristaanogre
Esteemed Contributor


@ductreho wrote:

Hello,

 

I was thinking of an analyzer in the visual studio genre. More advanced than TestComplete.

I would like to go much further than explorer code.
instead of having long functions it is more interesting to have cyclomatic complexity. Have the variables that are not used. Being able to add our own rules ourselves


On those lines, the code unit files are simple text files so you could always pull them into any other IDE to run a Code Analysis on, even if it's not in TestComplete.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
ductreho
Occasional Contributor

actually I am looking for a tool like this that can be integrated into TC or can then be easily launched alongside

your solution looks good on the site but actually for a systematic launch it's more complicated

JuliaBernikova
SmartBear Alumni (Retired)

Hi @ductreho,

 

Apart from the Code Explorer panel mentioned by @tristaanogre, TestComplete does not provide any special features for code analysis. You can post a feature request here - this way, other people can vote for your idea. Our product managers check new ideas on a regular basis and select the most popular ideas for discussion with R&D.


For a full development IDE experience, you might want to try TestLeft - another SmartBear tool that allows working with the TestComplete engine right from Visual Studio or Java IDEs. You can learn more about TestLeft here.

 

Julia Bernikova
SmartBear Customer Care Manager - TestComplete
cancel
Showing results for 
Search instead for 
Did you mean: