All Questions
496
questions
0
votes
0
answers
33
views
Why test cases fail in Jenkins with null pointer exception though it runs successfully on local
Test case execution failure on Jenkins Node. Testcases are written in Java using Junit. My webpage is not loading. The web app and backend is running successfully on Jenkins machine, but still it ...
0
votes
0
answers
73
views
No tests found for given includes in Jenkins
I facing issue No tests found for given includes: [**/*Test*](include rules) in jenkins.
On my local when I run the test cases through IntelliJ Idea, they are running fine.
I check for below ...
0
votes
1
answer
472
views
How to solve problem with wiremock on Jenkins? java.net.BindException: Permission denied
I have problem with wiremock test failing on Jenkins. When I try to run it on my local it runs smoothly, but when I tried to run on Jenkins, this exception occured :
[2023-10-09T12:20:41.562Z]
[2023-...
0
votes
1
answer
34
views
Multiple Jenkin execution results in replacing the result values in XRay issue
I am trying to integrate Junit, Jenkins with Xray such that post automation it has to update the Xray test cases. I have specified the dedicated Test Execution value so that after every execution, ...
0
votes
0
answers
34
views
Junit: how can I pass a suite category through maven command line?
I would like to set the category of a Junit suite dynamically, so that the category can be passed directly from the maven command line, for example. Something like this:
@RunWith(Categories.class)
@...
0
votes
0
answers
383
views
Junit tests run locally (commandline+maven) but not on jenkins; Failed to load ApplicationContext IllegalArgumentException: InputStream cannot be null
I am working on an app and in parallel we set up the ci/cd environment. The app has 3 basic junit tests at the moment.
coordinates: java 17, spring boot2, h2 db, saml, vaadin, maven 3.9.1, jenkins was ...
0
votes
1
answer
890
views
Embedded Mongo flapdoodle issue in jenkins with openJDK 11
While migration java from 8 to 11, all the junit mongo query are getting fail in jenkins Linux server.
Error. - -11:06:20.987 [main] WARN de.flapdoodle.embed.mongo.packageresolver.linux....
0
votes
0
answers
93
views
How to create xml file from a multiple lines text file using python
Im trying to create an xml which picks up values from each line of a text file
unittests.text file looks like this:
test_sm.py src/test/python/t0/cli/test_sm.py 4 0.864s pass 4 Skip 0 Fail 0
...
0
votes
2
answers
430
views
JUnit Tests not showing in Sonar-Jenkins Pipeline
This is my sonar.properties file
sonar.host.url=https://sonar.cloud.health.ge.com/
sonar.projectKey=ils
sonar.projectName=ILS
sonar.projectVersion=1.0.0
sonar.sources=library/core
sonar.java.binaries=...
0
votes
1
answer
405
views
Running into errors while running my junit tests on jenkins build
The current workflow is as follows: there is a quality gate that my java service (jersey) has to pass before the built docker image can be deployed anywhere (through jenkins). This quality gate ...
1
vote
1
answer
116
views
How to parallelize a Jenkins job?
I want to speed up the Jenkins job through parallelizing the test stages. The idea is to move each test stage to a separate node. What I've found is the parallel keyword. When I used this I ran into ...
1
vote
1
answer
333
views
Missing log output from static logger class field
When executing JUnit tests in a Maven build on Jenkins some logs are not being written to the console.
class Foo {
static final Logger log = LoggerFactory.getLogger(Foo.class);
static Logger ...
0
votes
0
answers
43
views
How to get the feedback in Github from Jenkins server?
I'm building unit test in python with Github and Jenkins server.
I build a freestyle project in Jenkins and add the following shell in Build shell
python tests/run.py
I wonder how to return the ...
0
votes
2
answers
1k
views
getting "Jenkins is going to shutdown" message during long jobs
Sometimes, when one of our longer builds is running (around 2 hours), Jenkins will start displaying the "Jenkins is going to shutdown ..." message. And no, this has not been done by an ...
1
vote
0
answers
251
views
how can i email junit test result from jenkins in tabular form?
I am unable to email junit test result from jenkins. I want to send it in a tabular form. currently i send it but the design is not good in email.
I have already tried multiple techniques but the ...