Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6612775
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:08:19+00:00 2026-05-25T20:08:19+00:00

I have a Maven-managed Java project that includes JUnit tests — nothing unusual. Recently,

  • 0

I have a Maven-managed Java project that includes JUnit tests — nothing unusual. Recently, I started getting broken builds on my machine, but Hudson stayed happy. I realized that I had made a change that broke a unit test, but noticed that Hudson wasn’t running the unit test. Most of my tests ran fine, but everything in one of my packages was totally absent. Not listed as ‘skipped’, but actually missing.

Now, I didn’t set up this Hudson instance, and I’m not a guru, so I wasn’t sure where to start. In no particular order:

  • I looked at the project settings page, and copied the exact Maven command line being used and ran it locally. There are some Hudson-specific profile settings in the POM, so I thought it was worth a shot. Missing tests still run (and fail).
  • I tried to look at old executions, to see if maybe it was a recent change. Unfortunately, we only keep 5 old builds, so dead end there.
  • I checked the POM carefully to see if anything might ever cause it to exclude tests — not a Maven genius but I can say pretty confidently that there shouldn’t be anything, and anyway it shouldn’t matter because of bullet #1
  • I downloaded the Hudson workspace. Interestingly, there’s a test-classes directory under /target which has .class files for all the missing tests, but /target/surefire-reports has no matching output files

I feel like I must be missing some kind of setting somewhere, or at least some kind of logfile that would indicate how this is happening — maybe the tests are failing so badly as to nuke the Surefire process that invoked them before it can write about the failure? — but like I said, Hudson newb. What should my next move be?


UPDATE: Installed Jenkins locally and tried to reproduce. I’m losing my mind: it still fails to run quite a few tests, even if I log in myself, go to the Jenkins job workspace, and build

  • under my own account
  • using my own local m2 repo (from a network drive)
  • using the same Maven / Java binaries (from a network drive)
  • running the same OS

As far as I can tell, the source on the two machines is identical, my environment should be the same (same account)… I can’t think of any differences, except of course that a lot of tests don’t run on the Jenkins box.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T20:08:19+00:00Added an answer on May 25, 2026 at 8:08 pm

    I’m almost positive that this is not Hudson’s fault, or even strictly Maven’s fault. I think it’s a JUnit bug, and I’ll chase it down in this other question.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Maven-managed project that uses Mockito mocking in its unit tests. I
I have a project that is built and managed by Maven. I have a
I have java project that depends from other java projects. These projects are maven
I have a small command line utility project that I'm using Maven to manage.
I have a maven project with the following packages (for illustration only): Root: src/main/java
I have a Maven Java project, imported using m2eclipse . The target/ directory is
I have a maven-managed project with some modules (with jar package). Each module contains
I have a maven-managed project with some modules. One module contains some native codes
I have a project managed by maven with slf4j-api-1.5.8 and log4j-1.2.14 dependencies. At runtime,
I have Java project built with Maven2. There is used JUnit framework for testing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.