Questions tagged [jtest]

JTest is a commercial Java Static Analaysis tool by Parasoft

JTest is a commercial Java Static Analaysis tool by Parasoft.

17 questions
2
votes
0 answers

Jtest with gradle builds

We are using Parasoft Jtest to generate the Static Analysis reports for Java codes by using Jtestcli for Ant and Maven builds. Now we have a requirement to do the same for Gradle builds. Did not find any direct links to same. Hence needed help on,…
Raghav S
  • 401
  • 3
  • 6
2
votes
2 answers

How to integrate Parasoft (JTest) in Hudson?

I normally use JTest Parasoft as a plugin in Eclipse. But now, I need to integrate JTest in Hudson, at a way that in the Post-build, JTest should run its tests over a Maven project. So my questions are : How to integrate JTest in Hudson? I found a…
user3169231
  • 257
  • 3
  • 13
1
vote
1 answer

Jest mockResolvedValue return undefined with multiple args

I am trying to write a unit test for my NodeJs code. I am mocking my API call by using mockResolvedValue. This is my unit test: const { search } = require("../src/utils"); jest.mock("axios"); test("Should find an user", async () => { …
Luke
  • 468
  • 1
  • 5
  • 21
1
vote
0 answers

PLS regression in R: Testing alternative model specifications

In R, I would like to test the specification of a partial least square (PLS) model m1 against a non-nested alternative m2, applying the Davidson-MacKinnon J test. For a simple linear outcome Y it works quite well using the plsr estimator followed by…
Lexx
  • 23
  • 2
1
vote
1 answer

Why Cannot register SQL driver in JTesterDataSource?

I write a test class for testing my code. My database configuration is in jtester.properties, and the file as follow: database.type=MYSQL database.url=jdbc:mysql://xxxx:3311/ae_fc_00 database.userName=xxxx database.password=xxxx …
He Yuntao
  • 86
  • 11
1
vote
1 answer

localsettings.properties : How to use its properties for JTest configuration?

I'm trying to learn about the Maven Parasoft plugin, for JTest. Full name for version 3.12 : Parasoft:maven-parasoft-plugin:3.12:jtest First, except Apache website, I didn't find any tutorial about this plugin. I Wonder if i'm using bad keywords in…
Farah
  • 2,469
  • 5
  • 31
  • 52
1
vote
1 answer

Need to run Jtest by using an ant script...any example?

Need to run Jtest by using an ant script...any example ? I have done this so far
0
votes
1 answer

Using jtest how to pass a mock dom to the function being tested

I am new at jtest; I want to be able to unit test a function (that normally runs in a browser). Here's a simple situation where I thought the document was passed to the test function but it is not. Tested function (in tested_file.js) function…
0
votes
0 answers

Set up jest in quasar project

I want to use jtest in order to make some unit tests, I configured according to the doc, however when I run the test I got the error: enter image description here This is my jest.config.js file: preset:…
0
votes
2 answers

SyntaxError: Cannot use import statement outside a module React-Native

Hello everyone I hope you're doing okey , I had this problem with googlesignin , I did mock it , then problem with firebase again did mock it , now Im getting this error and I can't find any solution for it
Baha Th
  • 27
  • 5
0
votes
1 answer

Java test bridge for Automation testing in TFS 2015

Using JTest Automation Association extension- I want to test dotnet webapp with selenium Java Scripts. Agenda is to do continuous integration in TFS.(Build+Test through selenium scripts in Java together in TFS) I have dotnet project app repository…
Samira
  • 33
  • 9
0
votes
1 answer

What fix should be applied for JTest bug SECURITY.WSC.CACM-1

I am working on a project which goes through JTest scan in which one of the bugs is SECURITY.WSC.CACM-1 which states that: 'isUserInRole()' is not allowed to be invoked within 'isInRole()', it should only be invoked inside centralized access…
jcool
  • 314
  • 1
  • 3
  • 11
0
votes
1 answer

JTest - variable may possibly be null in try catch block

I have the code as below: object a = getObjectFromBlahBlah(); //'a' may possibly be null try{ a.beginTransaction(); . . . } catch (Exception e) { logger.debug(e.getMessage()); } After I run JTest, it will warn me 'a' may…
Sam YC
  • 10,725
  • 19
  • 102
  • 158
0
votes
1 answer

Customisation of Jtest in Eclipse

I am new to parasoft J-test, I want to customize the static analysis of J test in eclipse. I am able to customize what all the rules I need to check in static analysis but I need to change the severity of the rule. How can we change the severity of…
venkat
  • 3
  • 2
0
votes
2 answers

How to Export the Code Coverage report of jtest outside of it to share the report with the team

Is there any way to export the Code Coverage percentage of the class files to some report format from the jtest tool so this report can be shared with the rest of the team?
1
2