home.social

#propertybasedtesting — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #propertybasedtesting, aggregated by home.social.

  1. Spent a couple hours today working with a colleague on a property test using #eris. We found one bug in the implementation of our oracle, which proved that our production code was actually doing the right thing, though it's unclear if that was deliberate or accidental. After that we increased the number of samples to 1000 which actually seems to have uncovered another bug.

    Really cool to finally have a good use case for property based testing.

    #php #propertybasedtesting #pbt #phpunit

  2. Spent a couple hours today working with a colleague on a property test using #eris. We found one bug in the implementation of our oracle, which proved that our production code was actually doing the right thing, though it's unclear if that was deliberate or accidental. After that we increased the number of samples to 1000 which actually seems to have uncovered another bug.

    Really cool to finally have a good use case for property based testing.

    #php #propertybasedtesting #pbt #phpunit

  3. Spent a couple hours today working with a colleague on a property test using . We found one bug in the implementation of our oracle, which proved that our production code was actually doing the right thing, though it's unclear if that was deliberate or accidental. After that we increased the number of samples to 1000 which actually seems to have uncovered another bug.

    Really cool to finally have a good use case for property based testing.

  4. Надежный код: как писать тесты, чтобы запускать фичи в продакшен одним днем

    Писать или не писать тесты — выбор очевидный. Конечно, писать. Но если проект масштабный, одних unit‑тестов будет недостаточно: они бессильны на границах модулей, в интеграциях и пользовательских сценариях, а значит в этих местах будут пролезать баги. Такой код будет сложно поддерживать, вносить в него изменения и получать ожидаемый результат. В статье поговорим про разные стратегии тестирования под разные риски и кейсы. Поднимемся над привычными unit‑тестами и заглянем, что там есть еще. Спойлер: а еще там workflow‑, integration‑, property‑based‑ и resilience‑тесты.

    habr.com/ru/companies/mindbox/

    #C# #unittesting #integration_testing #propertybasedtesting #pure_functions #clean_architecture

  5. Надежный код: как писать тесты, чтобы запускать фичи в продакшен одним днем

    Писать или не писать тесты — выбор очевидный. Конечно, писать. Но если проект масштабный, одних unit‑тестов будет недостаточно: они бессильны на границах модулей, в интеграциях и пользовательских сценариях, а значит в этих местах будут пролезать баги. Такой код будет сложно поддерживать, вносить в него изменения и получать ожидаемый результат. В статье поговорим про разные стратегии тестирования под разные риски и кейсы. Поднимемся над привычными unit‑тестами и заглянем, что там есть еще. Спойлер: а еще там workflow‑, integration‑, property‑based‑ и resilience‑тесты.

    habr.com/ru/companies/mindbox/

    #C# #unittesting #integration_testing #propertybasedtesting #pure_functions #clean_architecture

  6. Надежный код: как писать тесты, чтобы запускать фичи в продакшен одним днем

    Писать или не писать тесты — выбор очевидный. Конечно, писать. Но если проект масштабный, одних unit‑тестов будет недостаточно: они бессильны на границах модулей, в интеграциях и пользовательских сценариях, а значит в этих местах будут пролезать баги. Такой код будет сложно поддерживать, вносить в него изменения и получать ожидаемый результат. В статье поговорим про разные стратегии тестирования под разные риски и кейсы. Поднимемся над привычными unit‑тестами и заглянем, что там есть еще. Спойлер: а еще там workflow‑, integration‑, property‑based‑ и resilience‑тесты.

    habr.com/ru/companies/mindbox/

    #C# #unittesting #integration_testing #propertybasedtesting #pure_functions #clean_architecture

  7. Надежный код: как писать тесты, чтобы запускать фичи в продакшен одним днем

    Писать или не писать тесты — выбор очевидный. Конечно, писать. Но если проект масштабный, одних unit‑тестов будет недостаточно: они бессильны на границах модулей, в интеграциях и пользовательских сценариях, а значит в этих местах будут пролезать баги. Такой код будет сложно поддерживать, вносить в него изменения и получать ожидаемый результат. В статье поговорим про разные стратегии тестирования под разные риски и кейсы. Поднимемся над привычными unit‑тестами и заглянем, что там есть еще. Спойлер: а еще там workflow‑, integration‑, property‑based‑ и resilience‑тесты.

    habr.com/ru/companies/mindbox/

    #C# #unittesting #integration_testing #propertybasedtesting #pure_functions #clean_architecture

  8. Нечёткое тестирование свойств

    Есть две категории программистов. Первая пишет тесты, вторая работает. Шутейка, конечно, на троечку, но в каждой байке, застрявшей в пабликах мёртвых заархивированных форумов, под пылью и нафталином, — можно нащупать слой гранита настоящей правды. Модное ныне «покрытие кода тестами» напоминает попытку оклеить айсберг новогодней мишурой — вроде и весело, но Титаник все равно пойдет на дно. Я собираюсь рассказать о том, как правильно тестировать код в изоляции (интеграционные тесты — зверь из соседнего вольера, и о нем — в другой раз). Для этого нам потребуется пара определений. Фаззинг (от английского fuzzing ) — это способ тестирования, при котором программе скармливают огромные объемы случайных, полуслучайных или вообще намеренно испорченных данных, с надеждой выявить уязвимости или баги. Изначально этот метод применялся в академической среде для поиска дыр в безопасности, но быстро перекочевал в руки здравомыслящих разработчиков. Property-based testing , в свою очередь, представляет собой подход к тестированию, где вместо проверки конкретных примеров типа «дважды два — четыре» мы формулируем общие свойства системы. Например: «если функция принимает список и возвращает список, то длина результата не должна превышать длину входа». А дальше уже инструмент генерирует тысячи, миллионы вариантов входных данных и проверяет, соблюдается ли это условие. Taste it!

    habr.com/ru/articles/983538/

    #propertybasedtesting #fuzzing #testing

  9. Ah, the riveting world of property-based testing for Python—because who wouldn't want to spend their day configuring test settings and suppressing health checks? 🤦‍♂️ Apparently, the key to a fulfilling life is exploring the endless menus of #Hypothesis documentation while debating if Auto lightdark mode is really the pinnacle of UI innovation. 🚀
    hypothesis.readthedocs.io/en/l #propertybasedtesting #Python #UIinnovation #softwaretesting #HackerNews #ngated

  10. About the efficacy of Property Based Testing. According to the study it's better than I (as a supporter) would have guessed.
    dl.acm.org/doi/10.1145/3764068

    #propertyBasedTesting #pbt

  11. About the efficacy of Property Based Testing. According to the study it's better than I (as a supporter) would have guessed.
    dl.acm.org/doi/10.1145/3764068

    #propertyBasedTesting #pbt

  12. About the efficacy of Property Based Testing. According to the study it's better than I (as a supporter) would have guessed.
    dl.acm.org/doi/10.1145/3764068

    #propertyBasedTesting #pbt

  13. About the efficacy of Property Based Testing. According to the study it's better than I (as a supporter) would have guessed.
    dl.acm.org/doi/10.1145/3764068

    #propertyBasedTesting #pbt

  14. About the efficacy of Property Based Testing. According to the study it's better than I (as a supporter) would have guessed.
    dl.acm.org/doi/10.1145/3764068

    #propertyBasedTesting #pbt

  15. thanks to all participants of my session on #propertybasedtesting at the Advanced Developer Conference (ADC) in Regensburg!

    You can find the presentation here:

    draptik.github.io/2025-05-adc-

  16. [Перевод] Исследуем монады в Rust через тестирование на основе свойств

    В педагогике программирования монады занимают место мистического объекта из мира функционального программирования, который трудно понять и еще труднее объяснить. Стереотип о сложности объяснения монад заключается в том, что они делятся на две категории: либо сравнение с каким-то продуктом питания , либо написание сложного математического жаргона, в чем проблема?

    habr.com/ru/articles/887234/

    #Rust #quickcheck #monad #propertybasedtesting

  17. @IAmSteveLove mind sharing your slides/storyline/code for other people wanting to spread the joy of #PropertyBasedTesting ?

  18. This PhD thesis about #PropertyBasedTesting is not only relevant for the future of the field, but also well written and entertaining - if you are interested in the subject.
    repository.upenn.edu/entities/

  19. so today I realized that @pigworker 's insight "Why Measure When You Can Require?" from "How to keep your Neighbours in Order" gives an excellent and concise way to write a generator (à la #propertybasedtesting ) for Binary Search Trees!
    Here's a gist (in #fsharp ) gist.github.com/cxandru/c9bf91

  20. This description from a crash fix PR yesterday by Stephen Dolan put a smile on my face: 😀
    "With the old code, the following sequence of unfortunate events can occur, if you are very, very unlucky (or you are @jmid with multicoretests, manufacturing bad luck on an industrial scale):"
    github.com/ocaml/ocaml/pull/13
    #quickcheck #pbt #propertybasedtesting

  21. This description from a crash fix PR yesterday by Stephen Dolan put a smile on my face: 😀
    "With the old code, the following sequence of unfortunate events can occur, if you are very, very unlucky (or you are @jmid with multicoretests, manufacturing bad luck on an industrial scale):"
    github.com/ocaml/ocaml/pull/13
    #quickcheck #pbt #propertybasedtesting

  22. This description from a crash fix PR yesterday by Stephen Dolan put a smile on my face: 😀
    "With the old code, the following sequence of unfortunate events can occur, if you are very, very unlucky (or you are @jmid with multicoretests, manufacturing bad luck on an industrial scale):"
    github.com/ocaml/ocaml/pull/13
    #quickcheck #pbt #propertybasedtesting

  23. This description from a crash fix PR yesterday by Stephen Dolan put a smile on my face: 😀
    "With the old code, the following sequence of unfortunate events can occur, if you are very, very unlucky (or you are @jmid with multicoretests, manufacturing bad luck on an industrial scale):"
    github.com/ocaml/ocaml/pull/13
    #quickcheck #pbt #propertybasedtesting

  24. This description from a crash fix PR yesterday by Stephen Dolan put a smile on my face: 😀
    "With the old code, the following sequence of unfortunate events can occur, if you are very, very unlucky (or you are @jmid with multicoretests, manufacturing bad luck on an industrial scale):"
    github.com/ocaml/ocaml/pull/13
    #quickcheck #pbt #propertybasedtesting