Questions tagged [codepro]

CodePro AnalytiX is Java software testing tool owned by Google.

CodePro AnalytiX is a Java software testing tool owned by Google.

It allows analysis of various code metrics, code coverage and dependencies as well as generation of tests.

27 questions
16
votes
1 answer

TestNG: Eclipse confused by JUnit

I'm setting up tests with TestNG in an Eclipse project, but I get a strange error: When I try to generate a test class from a business class, I get a popup with a message saying "Grid not editable" (title) "The compilation unit is not compilable, or…
Alexis Dufrenoy
  • 11,784
  • 12
  • 82
  • 124
12
votes
3 answers

How to execute Google Codepro analytix from command line?

Is it possible to run Google CodePro analytix from Command Line. What I am looking for is to run this from a shell script passing the file name as a parameter and get all the metrics generated on file level for the filename I passed in as…
Salman A. Kagzi
  • 3,833
  • 13
  • 45
  • 64
9
votes
1 answer

Findbugs vs Google CodePro AnalytiX (Eclipse plugins)

I already have used the Google CodePro AnalytiX but I never used Findbugs. My first impression with Findbugs is that it is harder to configure. After that, I believe that both are similar. What's your opinion? Just one more question related: None of…
JMarques
  • 3,044
  • 4
  • 34
  • 55
5
votes
2 answers

How do you use CodePro's contracts in Eclipse?

I thought I understood CodePro's contracts, but they seem to have no effect. For example: public class ContractTest { private int number; /** * @pre inputNumber > 0 * * Alternatively: * @post number > 0 */ …
Kevin
  • 4,070
  • 4
  • 45
  • 67
5
votes
3 answers

Why does google CodePro generate identical JUnit tests?

When CodePro automatically generates tests for my methods, it often generates identical tests: /** * Run the String getCategoryID() method test. * * @throws Exception * * @generatedBy CodePro at 17/11/11 11:44 AM */ @Test public void…
Kevin
  • 4,070
  • 4
  • 45
  • 67
4
votes
2 answers

How can I find (and eliminate) all unreferenced fields declared in an interface?

After eliminating some specific nonsense pattern, I need to identify and possibly delete fields that are declared in some interface like this: public interface X { String A = "xxx"; String B = "zzz"; } Sure I can use Eclipse's "find all…
TheBlastOne
  • 4,291
  • 3
  • 38
  • 72
4
votes
0 answers

Select all modified files in Eclipse

I want to run a plugin on only the modified files in my Eclipse Workspace. I didn't find any shortcut in eclipse to select only modified files (changed after svn checkout) in the package explorer. I was hoping there would be an option since Eclipse…
Debajyoti Das
  • 2,038
  • 4
  • 34
  • 66
3
votes
1 answer

Google CodePro rules

I have been using Google CodePro Audit for java for few days now and i'm amazed in how much it helped me improve my code. There are some rules which never crossed my mind and some that i don't really understand the consequences. For instance, i…
ehanoc
  • 2,187
  • 18
  • 23
3
votes
1 answer

How to use CodePro Analytix with Spring MVC project for jUnit generation?

We are evaluating CodePro analytix to generate jUnits. We are working on a web project in spring3.0. As of now CodePro is generating useless jUnits. It generates identical testcase. ( I have already specified spring-test.jar as the manual suggests…
Rakesh Juyal
  • 35,919
  • 68
  • 173
  • 214
3
votes
4 answers

"Equality test with boolean literal" - Difference between testing boolean and using ==

I am using Code Pro to review my application code and the tool reported back with the message: Warning: equality test with boolean literal For this code: boolean valid; if(valid == true) which can be fixed by using: if(valid) I have 2 questions…
Ashish
  • 14,295
  • 21
  • 82
  • 127
2
votes
1 answer

Is there a Sonar, Findbugs, or PMD rule that detects this possible NPE that CodePro detects?

Let's say I have a block of code like this: Map mappy = (Map)pExtraParameters.get(ServiceClientConstants.EXTRA_PARAMETERS); if (pSSResponseBean!=null) { mappy.put(AddressResearchContext.CSI_RESPONSE_BEAN,…
David M. Karr
  • 14,317
  • 20
  • 94
  • 199
2
votes
1 answer

Running "headless Eclipse" inside Ant task

Please note - to anybody that argues that I should "remove the backstory" here, or that this question has "nothing to do with CodePro", I would like to mention that CodePro has very little documentation for how to get their Ant tasks up-and-running…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
2
votes
0 answers

Build Automation for CodePro AnalytiX

Does Google CodePro AnalytiX have Ant/Gradle tasks that are publicly available? It looks like Google bought CodePro AnalytiX and turned it into an Eclipse-only tool. Searching the CodePro AnalytiX web pages it is obvious that there were defined Ant…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
1
vote
0 answers

Codepro Analytix- JUnit - ClassNotFoundException

I am trying to generate JUnit test cases with Codepro Analytix v7.1 in RAD 7.5. I am getting the ClassNotFoundException even for a simple source code. Source Code: package com.tmp; public class General { public int getPriceRate(){ …
1
vote
1 answer

How to use Google CodePro Coverage on Google Appengine code?

I'm trying to use Google's CodePro Coverage tool to measure the coverage of my unit tests on a Google AppEngine project. However I'm getting various ClassFormatError exceptions on running the tests. Have others got Google CodePro coverage working…
byeo
  • 646
  • 7
  • 17
1
2