Fix parameterized test names in CrudProseTest by jyemin · Pull Request #1775 · mongodb/mongo-java-driver

@jyemin self-assigned this

Jul 23, 2025

@jyemin jyemin requested review from rozza and removed request for a team

July 23, 2025 17:28

@jyemin

Previously, for a parameterized test like
CrudProseTest::testBulkWriteHandlesWriteErrorsAcrossBatches,
the test names in the JUnit XML output (and therefore in CI) were

  [1] false
  [2] true

Now the test names are

 6. MongoClient.bulkWrite handles individual WriteErrors across batches--ordered:false
 6. MongoClient.bulkWrite handles individual WriteErrors across batches--ordered:true

and appear in the IDEA UI like

 6. MongoClient.bulkWrite handles individual WriteErrors across batches
    --ordered:false
    --ordered:true

and in Gradle output like

  6. MongoClient.bulkWrite handles individual WriteErrors across batches

    Test 6. MongoClient.bulkWrite handles individual WriteErrors across batches--ordered:false PASSED (5.1s)
    Test 6. MongoClient.bulkWrite handles individual WriteErrors across batches--ordered:true PASSED

vbabanin

vbabanin

@jyemin jyemin deleted the fix-parameterized-test-names-in-crud-prose-test branch

July 24, 2025 20:11