Hi James, Karthik,

Thanks, James. I'm happy to write it up.

Karthik, that's a good point. Line coverage and feature coverage answer
different questions, so any target should say clearly which one it means.
I'll cover both.

I already have a rough draft, based on the other FSIPs and the related
discussions. I'd like to go through it once more, and I'll post it on this
thread early next week. Once people are happy with the text, we can vote.

Any thoughts in the meantime are welcome.

Thanks,
Senesh Perera
Github: ImalkaPerera <https://github.com/ImalkaPerera>

On Sat, Dec 5, 2026 at 9:09 PM Karthik Kulkarni <
[email protected]> wrote:

> +1 to formalizing this into an FSIP, and thanks Senesh for volunteering to
> pull together the initial write-up and baseline.
>
> I think it would help to explicitly distinguish Code Coverage from Feature
> (Domain) Coverage in the FSIP before we set percentage gates or go to a
> VOTE. Right now the thread touches both, and mixing them into a single
> metric like "10% / 40% Cucumber test coverage" could create some confusion:
>
>    1. Code Coverage vs. Feature Coverage
>       - Feature / Domain Coverage (What business capabilities are
>       verified?)
>       - Maps each module's supported functionality and business workflows
>       to readable Cucumber .feature specifications (living documentation of
>       Fineract's domain rules).
>       - This aligns directly with James's point about "tests that express
>       the domain covered by Fineract" and gives a clear basis for deciding
>       whether an unmaintained feature should be supported or pruned.
>    2. Code Coverage (How much Java code/branching is exercised?)
>       - Measured structurally via JaCoCo (line/branch coverage) and
>       tracked in SonarCloud.
>       - As Senesh noted, .github/workflows/sonarqube.yml currently runs
>       ./gradlew ... sonar on the pre-built workspace without running tests or
>       feeding aggregated JaCoCo XML reports (and integration/Cucumber tests 
> run
>       out-of-process against a live server), which is why SonarCloud reports 
> 0.0%
>       across modules even when tests exist.
>
>
>
>
>
> *┌── karthik-kulkarni@fedora:~$ whoami│   Karthik Kulkarni — Senior
> Software Engineer @ HCLTech├── stack: [Java, Spring Boot, Docker,
> MongoDb]└── links: github.com/kartik1502
> <http://github.com/kartik1502> | linkedin.com/in/
> <http://linkedin.com/in/>kartikulkarni
> <https://www.linkedin.com/in/karthikulkarni/> | KARTHIK. SYS
> <https://kartik1502.github.io/portfolio/>*
>
>
> On Sat, Dec 5, 2026 at 8:09 PM James Dailey via dev <
> [email protected]> wrote:
>
>> Senesh -  If you could write up the FSIP using the other FSIPs as a model
>> and leveraging the information from the project and matrix discussions on
>> the same topic, that woudl be helpful.
>>
>> Share your write up here and I'll add it to a new FSIP page.  I think the
>> more specific you can be about how to approach the coverage metrics the
>> better. Look at whatever seems like "best practice".
>>
>> Then we can call a VOTE on the FSIP after we confirm the actual text.
>>
>> Any other comments are welcome at this early stage.  I think we need many
>> more tests that express the domain covered by Fineract.
>> If code is becoming less valuable, knowledge extracted from the code and
>> placed into readable tests is becoming more valuable.
>>
>> James
>>
>>
>>
>> On Thu, Dec 3, 2026 at 7:49 PM Senesh Perera <[email protected]>
>> wrote:
>>
>>> Hi James, all,
>>>
>>> +1 from me, and I'd be glad to help get this going. Are you still
>>> planning the FSIP page and vote? Happy to help write it up.
>>>
>>> One thing I noticed while looking at the baseline: SonarCloud currently
>>> shows 0.0% coverage for every module, even progressive loan, which has lots
>>> of tests. The Sonar job doesn't run the tests, so no coverage data reaches
>>> it. And for the integration and Cucumber tests, which run against a live
>>> server, coverage has to be collected from that server too. I can look into
>>> getting real numbers from our test suites and aim to have a per-module
>>> report before January 10th. That might also help with Aman's question about
>>> tracking.
>>>
>>> I'd like to write tests for fineract-charge too, since I've been working
>>> on charges lately. But I'm happy to start wherever you think makes most
>>> sense. Dhroov, if you still want charges, we can share it. I can help
>>> review tests as well.
>>>
>>> Asha, I've CC'd you since you introduced yourself as a QA contributor
>>> and asked which areas need more testing. This thread is James's proposal to
>>> improve test coverage across Fineract modules next year, which is also what
>>> Aman suggested to you. Your QA experience would be really useful here.
>>> Would you like to join? We could pick a module and work on it together.
>>>
>>> Thanks,
>>> Senesh Perera
>>> Github: ImalkaPerera <https://github.com/ImalkaPerera>
>>>
>>> On Tue, Nov 3, 2026 at 6:49 AM Dhroov Sankla <[email protected]>
>>> wrote:
>>>
>>>> Hi James,
>>>>
>>>> Sounds great! I'm completely flexible on the module—happy to take on
>>>> whichever area you or the maintainers feel is highest priority once the
>>>> FSIP tickets are created.
>>>>
>>>> Looking forward to the VOTE and ticket updates.
>>>>
>>>> Regards,
>>>> Dhroov
>>>>
>>>> On Mon, 2 Nov, 2026, 20:52 James Dailey via dev, <
>>>> [email protected]> wrote:
>>>>
>>>>> Thanks for the engagement.
>>>>>
>>>>> This thread started over 72 hours ago and I've only seen support.  Per
>>>>> our process and ASF norms 72 hrs is sufficient time for a discussion of
>>>>> this nature.
>>>>>
>>>>> I'll write the FSIP now and we'll hold a VOTE.
>>>>>
>>>>> Dhroov - i will be adding tickets ; this is a long term need and it
>>>>> will take both people writing tests and people reviewing tests.  As a
>>>>> "test" we can start w one area as you've mentioned but not sure that's the
>>>>> best one.
>>>>>
>>>>>
>>>>> Sent from Gmail Mobile
>>>>>
>>>>> On Mon, Nov 2, 2026 at 4:11 AM Dhroov Sankla <
>>>>> [email protected]> wrote:
>>>>>
>>>>>> Hi  team,
>>>>>>
>>>>>> +1 for this FSIP initiative.
>>>>>>
>>>>>> Looking at SonarQube, core modules such as 
>>>>>> fineract-charge,fineract-accounting
>>>>>> and other modules currently show 0% coverage. I would like to
>>>>>> contribute by writing Cucumber E2E and integration tests for
>>>>>> *fineract-charge* to help establish its baseline.
>>>>>>
>>>>>> Is there a specific Jira epic or tracking issue logged for this FSIP
>>>>>> effort where sub-tasks are being organized?
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> Dhroov
>>>>>>
>>>>>>
>>>>>> On Wed, Oct 28, 2026 at 12:18 PM Aman Mittal <
>>>>>> [email protected]> wrote:
>>>>>>
>>>>>>> Hi James
>>>>>>>
>>>>>>> +1 for this FSIP, however i want to know how we will track the
>>>>>>> coverage for Fineract. One thing we can rely on is to use sonarqube
>>>>>>> https://sonarcloud.io/project/overview?id=apache_fineract (While it
>>>>>>> needs configuring) it would be a good way to track the maintainability 
>>>>>>> and
>>>>>>> coverage overtime. Can we mandate coverage in the e2e coverage report or
>>>>>>> perhaps utilize Codecov for new coverage?
>>>>>>>
>>>>>>> Regards
>>>>>>> Aman
>>>>>>>
>>>>>>> On Wed, Oct 28, 2026 at 1:13 AM James Dailey <[email protected]>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Devs -
>>>>>>>>
>>>>>>>> As recently discussed on matrix
>>>>>>>> https://matrix.to/#/#apache-fineract-dev:matrix.org
>>>>>>>>
>>>>>>>> We have a LOT of tests.  Adam S. did much of the work to enable
>>>>>>>> them to run in parallel on VMs. [1] [2], I believe alongside Kristoff.
>>>>>>>> This enables them to run without bogging down.
>>>>>>>>
>>>>>>>> Yet, despite having something in the range of >1500 tests, we do
>>>>>>>> not have good test coverages for large swaths of the project.  It is
>>>>>>>> HEAVILY skewed toward the Progressive Loan module.
>>>>>>>>
>>>>>>>> I would like to propose that a new FSIP (fineract significant
>>>>>>>> improvement project) is discussed now, formulated, then voted upon in a
>>>>>>>> week or two, then worked on by a range of folks over the next year.  
>>>>>>>> i.e.
>>>>>>>> GSOC students, other volunteers, new devs, etc.  We can certainly get 
>>>>>>>> some
>>>>>>>> help from the AI tooling per previous discussions.  Brainstorming time.
>>>>>>>>
>>>>>>>> AND, as a corollary, if we don't want to support an area of
>>>>>>>> functionality, we should prune it from the code release.
>>>>>>>>
>>>>>>>> To put an arbitrary number to this:  we need at least 40-50%
>>>>>>>> coverage of an area of code to allow it to continue to be in the 
>>>>>>>> project.
>>>>>>>> We want 70% coverage for some level of stability.  We ramp this up on a
>>>>>>>> quarterly reporting basis:
>>>>>>>>
>>>>>>>> 2027:
>>>>>>>> * January 10th - what test coverage do we have today across the
>>>>>>>> modules, assumed to be 0% for some modules, and up to 70% for others.
>>>>>>>> Baseline published.
>>>>>>>> * April 10th - at least 10% cucumber test coverage for all
>>>>>>>> components that we intend to keep.  Plans to prune begin.
>>>>>>>> * July 10th -  at least 20% cucumber test coverage for all
>>>>>>>> components that we intend to keep.
>>>>>>>> * Oct 10 - at least 40% .  Pruning.
>>>>>>>> * Jan 2028 - stability
>>>>>>>>
>>>>>>>> To work on something like this, you need to dig into the topic,
>>>>>>>> examine the code, pay close attention to the existing cucumber tests 
>>>>>>>> and
>>>>>>>> setup, write domain specific tests, and incrementally increase the test
>>>>>>>> coverage.  It must be coordinated and someone must own it - I would 
>>>>>>>> want an
>>>>>>>> eager volunteer for this, just for the coordination.
>>>>>>>>
>>>>>>>> [1]
>>>>>>>> https://github.com/apache/fineract/tree/develop/fineract-e2e-tests-runner/src/test/resources/features
>>>>>>>> [2] (.github/workflows/build-e2e-tests.yml,
>>>>>>>> scripts/split-features.sh,
>>>>>>>>
>>>>>>>> Comments, concerns, feedback?
>>>>>>>>
>>>>>>>> -James
>>>>>>>>
>>>>>>>>

Reply via email to