docling-java icon indicating copy to clipboard operation
docling-java copied to clipboard

Increase code coverage

Open edeandrea opened this issue 9 months ago • 5 comments

We'd like to have more tests to increase our code coverage. Also more tests around other use cases as well (other parts of the APIs).

edeandrea avatar Feb 24 '26 15:02 edeandrea

hello, I would like to help

lemosdevv avatar Feb 24 '26 20:02 lemosdevv

Thanks @lemosdevv !

There are lots of gaps currently in https://github.com/docling-project/docling-java/blob/main/docling-serve/docling-serve-client/src/test/java/ai/docling/serve/client/AbstractDoclingServeClientTests.java

We should be testing all the various options that are available in the api but unfortunately we aren't right now. Just simple cases.

edeandrea avatar Feb 24 '26 21:02 edeandrea

Hello, I'd like to help too @edeandrea

celikfatih avatar Mar 21 '26 21:03 celikfatih

Hi @edeandrea, I would like to work on #350 by adding a small unit test around DoclingServeClientBuilderFactory.

The test will cover the edge case where neither Jackson 2 nor Jackson 3 is visible to the supplied classloader, and will assert that the factory throws a helpful IllegalStateException with dependency guidance.

Does this sound okay?

codingkiddo avatar May 24 '26 14:05 codingkiddo

Hi @edeandrea, I would like to work on #350 by adding a small unit test around DoclingServeClientBuilderFactory.

The test will cover the edge case where neither Jackson 2 nor Jackson 3 is visible to the supplied classloader, and will assert that the factory throws a helpful IllegalStateException with dependency guidance.

Does this sound okay?

Sounds great! Thank you!

edeandrea avatar May 24 '26 14:05 edeandrea