Моки без боли

Моки — достаточно крутой инструмент, если использовать его правильно. И все-таки лично для меня писать и поддерживать тесты на моках всегда было отдельным видом боли. Думаю, все знакомы с ситуацией: добавил в метод новый аргумент — и пошёл в 30 тест-кейсов проставлять заглушки. И это только от одного нового аргумента. И я не буду здесь спорить о терминологии — в этой статье я буду называть все тестовые дублёры «моками». Примеры будут на Scala, но моки в других языках работают похожим образом, так что боль универсальная. Как и решение — об этом в статье.

https://habr.com/ru/articles/1030834/

#scala #scalamock #zio #catseffect #тестирование #моки #стабы #моктестирование #юниттестирование

Моки без боли

Моки — достаточно крутой инструмент, если использовать его правильно. И все-таки лично для меня писать и поддерживать тесты на моках всегда было отдельным видом боли. Думаю, все знакомы с ситуацией:...

Хабр

Cats-Actors 2.1.0 is out 🎉 — now with Scala Native + Scala.js support!
Ring benchmark across JVM/Native, live browser demo, and new samples to get you started.

Blog post 👉 https://cloudmark.github.io/Cats-Actors-Native-And-JS/

Thanks to rlavolee and Voltir!
#Scala #ScalaNative #ScalaJS #CatsEffect

Cats-Actors 2.1.0 Goes Cross-Platform

Imagine writing your actor logic once (typed messages, functional state, the ! operator, supervision and all) and then deciding on a whim whether it runs as a JVM service, a self-contained native binary, or a live interactive app in your browser. No rewrites, no ports, no platform-specific glue. Just one codebase. Cats-Actors can do that now, and in this post we are going to have some fun with it. We will throw a token around a ring of actors on both JVM and Scala Native, and then (because why not) we will drop eight monkey actors into a banana-throwing arena right here inside this page. Real actors. Real messages. Running in your browser.

what's the best organization in an #OpenGL #CatsEffect Scala animation application?
Stepping into #OpenGL Animations with #CatsEffect and #Scala 3. It is promising!

Cats-Effect 3.6.0 is a very exciting release due to the work on its internal work scheduler, many congrats to its contributors! ❤️

https://github.com/typelevel/cats-effect/releases/tag/v3.6.0

#Scala #CatsEffect #FP

Release v3.6.0 · typelevel/cats-effect

This is the fifty-fifth release in the Cats Effect 3.x lineage. It is fully binary compatible with every 3.x release and fully source-compatible with the 3.6.x lineage. Please note that we did brea...

GitHub

@alexelcu

#Scala #CatsEffect #FP yep! And thanks @djspiewak for the release notes, they are always very well written

Cats-Effect 3.6.0-RC1 comes with some very exciting changes ❤️ Congrats to the team, they keep delivering 😍

#Scala #CatsEffect #FP

https://github.com/typelevel/cats-effect/releases/tag/v3.6.0-RC1

Release v3.6.0-RC1 · typelevel/cats-effect

This is the fifty-third release in the Cats Effect 3.x lineage. It is fully binary compatible with every 3.x release and expected to be fully source-compatible with the eventual 3.6.x lineage. This...

GitHub

🐱 Cats-Actors 2.0.0 is officially released and production-ready! 🚀 🚀

We’ve migrated from Akka to Cats-Actors in production, handling thousands of messages/second in the iGaming industry.

Built on Cats Effect, it’s a pure functional library offering performance comparable to Akka, fully integrated with the Cats ecosystem.

Library: https://github.com/suprnation/cats-actors
Sample: https://github.com/cloudmark/cats-actor-sample

Feedback and contributions are always welcome!

#Scala #FunctionalProgramming #CatsEffect

GitHub - suprnation/cats-actors: Cats Actors framework for building apps which are reactive. Cats actors uses a conceptual actor model as a higher level abstraction for concurrency.

Cats Actors framework for building apps which are reactive. Cats actors uses a conceptual actor model as a higher level abstraction for concurrency. - suprnation/cats-actors

GitHub

🚀 **Cats-Actors v2.0.0-RC5 Released!**

🔹 **Termination Fix**: Ensures state data is preserved and correct state references during termination.
🔹 **State Getters Added**: Easily access `stateName` and `stateData` for tracking and debugging.
🔹 **Error Escalation**: Improved error handling during initialization.

Samples updated!
🔗 [Cats-Actors Repo](https://github.com/suprnation/cats-actors)
🔗 [Samples](https://github.com/cloudmark/cats-actor-sample)
🔗 [Tutorials & Docs](https://cloudmark.github.io/Cats-Actors-In-The-Wild/)

#catseffect #Scala #typelevel

GitHub - suprnation/cats-actors: Cats Actors framework for building apps which are reactive. Cats actors uses a conceptual actor model as a higher level abstraction for concurrency.

Cats Actors framework for building apps which are reactive. Cats actors uses a conceptual actor model as a higher level abstraction for concurrency. - suprnation/cats-actors

GitHub

🚀 Excited to share our new #CatsActors samples repository! Explore how to harness the power of #Scala & #CatsEffect for building robust, concurrent actor systems.

🔍 Highlights:
1️⃣ Jungle Chaos 🐒🍌
2️⃣ Cat Café FSM 🐱
3️⃣ Cat Circus Supervision 🎪
4️⃣ Logic Circuit Simulator 🔌

Dive in now: https://github.com/cloudmark/cats-actor-sample

#reactive #scala #fp #reactive #catsactors #typelevel

GitHub - cloudmark/cats-actor-sample: Cats Actor Samples

Cats Actor Samples. Contribute to cloudmark/cats-actor-sample development by creating an account on GitHub.

GitHub