David Pilato
David Pilato
Developer | Evangelist
  • Archives
  • Talks
  • About me
  • All Categories
  • All Tags
  • RSS

Le hasard fait bien les tests

Riviera Dev – Nice 🇫🇷

Jul. 2026

David Pilato
David Pilato

Abstract

Le hasard fait bien les choses.

Si on applique cette idée aux tests unitaires ou aux tests d’intégration, on peut rendre nos tests beaucoup plus imprévisibles et du coup trouver des problèmes que notre esprit n’aurait jamais osé imaginer ! Par exemple, récemment, j’ai découvert dans une bibliothèque de gestion de configuration, un bug qui se produit lorsque la Locale est configuré en AZ. 🤦🏼‍♂️

Un autre exemple encore plus simple :

int input = generateInteger(Integer.MIN_VALUE, Integer.MAX_VALUE);
int output = Math.abs(input);

Peut générer -2147483648… Ce qui est assez inattendu pour une valeur absolue ! 😉 Les tests aléatoires peuvent découvrir ces cas tordus… C’est ce que l’équipe elasticsearch a mis en place depuis plusieurs années à l’aide du framework RandomizedTesting pour tester tout le code Java.

Après cette conférence, vous ne verrez plus jamais la fonction random() comme avant et découvrirez comment la (mal)chance peut vous aider ! 🍀

Resources

The following resources were mentioned during the presentation or are useful additional information.

Demo project

The source code for the demo project

RandomizedTesting framework

The framework provided by Carrot Search

Ariane 5 launch video

The Ariane 5 first launch on June 4th, 1996

FSCrawler project

FSCrawler is running tests with RandomizedTesting framework

A weird CI error in FSCrawler

The error I could not reproduce locally

Gestalt issue 242

The issue I opened after my findings
Next page Le hasard fait bien les tests
Played Randomized Testing 8 times
  • 2026-07-07 – Riviera Dev fr Le hasard fait bien les tests
  • 2026-06-24 – BreizhCamp fr Le hasard fait bien les tests
  • 2026-02-12 – Touraine Tech fr Le hasard fait bien les tests
  • 2025-11-13 – DevFest Toulouse fr Le hasard fait bien les tests
  • 2025-08-19 – Testμ Conf’25 en Randomized testing: Gotta Catch ‘Em All
  • 2025-05-14 – Elastic EAH (private event) en Randomized testing: Gotta Catch ‘Em All
  • 2016-03-24 – Breizhcamp fr Le hasard fait bien les tests
Gave 4 talks at Riviera Dev
  • 2026-07-07 fr Le hasard fait bien les tests  
  • 2024-07-09 fr L’art du DeeJaying par la pratique
  • 2024-07-08 fr La recherche à l’ère de l’IA
  • 2016-06-17 fr And the beats go on!

© 2010 - 2026 David Pilato

🔍 Search is powered by QueryBox. Just hit CTRL+K or CMD+K to start searching.

⚙️ Generated from 🇫🇷 with ❤️ on Wed Apr 22, 2026 at 15:07:47 UTC

🌱 Powered by Hugo with theme Dream and some custom templates.

Details

I discovered Elasticsearch project in 2011. After contributed to the project and created open source plugins for it, David joined elastic the company in 2013 where he is Developer and Evangelist. He also created and still actively managing the French spoken language User Group. At elastic, he mainly worked on Elasticsearch source code, specifically on open-source plugins. In his free time, he likes talking about elasticsearch in conferences or in companies (Brown Bag Lunches AKA BBLs ). He is also author of FSCrawler project which helps to index your pdf, open office, whatever documents in elasticsearch using Apache Tika behind the scene.

Who am I?

Developer | Evangelist at elastic and creator of the Elastic French User Group . Frequent speaker about all things Elastic, in conferences, for User Groups and in companies with BBL talks . In my free time, I enjoy coding and deejaying as DJ Elky , just for fun. Living with my children in Cergy, France.

Social Links

© 2010 - 2026 David Pilato

🔍 Search is powered by QueryBox. Just hit CTRL+K or CMD+K to start searching.

⚙️ Generated from 🇫🇷 with ❤️ on Wed Apr 22, 2026 at 15:07:47 UTC

🌱 Powered by Hugo with theme Dream and some custom templates.