Capgemini Gen AI powered solution: codeai

Capgemini Gen AI powered solution: codeai

The Financial Services department in Capgemini Poland has developed a cutting edge solution called codeai that is generating unit tests for Java and Kotlin projects using generative ai. In a classic approach where developers write the tests manually it takes months/years while codeai does it in minutes/hours.

How does it work?

codeai checks out the code and asks ai to create unit tests for each class. Of course the first responses are often wrong but it is very easy to verify them by compiling and running the generated test and checking it against various metrics like static code analysis, mutation testing etc. Only the code that passes all of them is accepted.

What is the output?

Codeai creates a Pull Request for developers to approve or reject so the tool cannot break anything in the code.

The interesting part here is that sometimes ai generates a test that fails on an assert so that kind of tests go to a separate PR that contains potential bugs found by ai!

Is it safe?

Yes. codeai uses a private ai instance that does not connect to the Internet so the mechanism only connects to ai and ai only talks back to the mechanism and the rest is firewalled.

Where does it create the most value?

In legacy projects. You can imagine an old 1 million lines of code java project with test coverage of 5% that nobody wants to touch because something may break. If you run codeai on it it can deliver 10 times higher coverage over the weekend and provide stability plus confidence for the dev team. Of course if you need let’s say 10 people to support these kinds of legacy components you can move 5-6 to non legacy projects if you use codeai. This is huge impact on cost and attrition.

Of course codeai can be applied on any project but if the project is already covered by meaningful collection of tests then its added value would not be as significant as in case of applying it on legacy.

Can I use it?

Yes, if you are a customer of Capgemini or you would like to become one.

Notes

The solution has been also recently described in the “Programista” magazine in Poland: https://programistamag.pl/magazyny/

Here is a presentation showing how it works in practice: https://youtu.be/CEcUlnDpdW0?feature=shared

Like
Reply

To view or add a comment, sign in

More articles by Adam Witkowski

  • The new binary. Do we need to look into AI generated code?

    Disclaimer: this article IS NOT generated by AI. Often people say: AI generated code is like binary - you do not need…

    11 Comments
  • Hyperinflation of Technology

    Disclaimer: this article IS NOT generated by AI. Nowadays when somebody publishes a book about agents or AI it is…

    6 Comments
  • Where human is better than AI: The responsibility gap

    Disclaimer: this article IS NOT generated by AI. One tiny condition Let me start with an observation Stanislaw Lem did:…

    7 Comments
  • Continuous Integration: False Feeling of Safety

    Disclaimer: this article IS NOT generated by AI although the picture is. For many years developers have tried to make…

    4 Comments
  • Amortizing Non Determinism: Testing Gen AI Agents

    Disclaimer: this article IS NOT generated by AI although the picture is. Non deterministic factor Determinism means…

    2 Comments
  • Can gen ai agents be agile?

    Disclaimer: this article IS NOT generated by AI although the picture is. Define agile Many people think agile means…

    6 Comments
  • Digital orphans

    Disclaimer: this article IS NOT generated by AI although the picture is. Classic approach When we create software in a…

    14 Comments
  • AI generated apps are like modern cars?

    Disclaimer This article IS NOT created by AI. Nobody can fix their car anymore A long time ago, like in the 80s etc the…

    5 Comments
  • Making agents work with huge code and small AI using method slicing

    Abstract We are creating gen ai agents that consume whole projects in java, scala etc and output unit tests or code…

    2 Comments
  • IT Recruitment Antipatterns And How To Avoid Them

    Seems to me that people make so many mistakes in the recruitment process that it is difficult to find some other area…

    16 Comments

Others also viewed

Explore content categories