Как ускорить тесты проекта в 6 раз: от 10 минут к 101 секунде

Почти 800 тестов, 10 минут на прогон, каждый пуш — ожидание на CI. Знакомо? Рассказываю, как довёл время до 101 секунды: снижение таймаутов, параллелизм ScalaTest, shared Testcontainers и защита от регрессий. Scala, SBT, PostgreSQL, GraalVM — конкретные шаги и подводные камни.

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

#scala #scalatest #testcontainers #postgresql #тестирование #оптимизация #параллелизм #sbt #graalvm #hikaricp

Как ускорить тесты проекта в 6 раз: от 10 минут к 101 секунде

За годы в разработке я видел проекты, где тесты запускались быстрее, чем закипал чайник, и проекты, где можно было сходить за кофе, выпить его, вернуться - а тесты всё ещё бежали. Поговорим про второй...

Хабр

Today I finally tackled the test output looking bad in #dap when running tests with #metals, because of ANSI color codes not being rendered.

I tested my setup with #ScalaTest, #MUnit, and #weaver. The best rendering being in weaver.

Ne jamais dire jamais, réflexion sur l'utilisation de never avec #mockito et #scalatest https://jlebleu.gitlab.io/post-scala-never/
#scala #tdd
Ne Jamais dire Jamais | Jean-Yves

Une alternative à mockito never dans les tests avec scalatest

Jean-Yves
Mastering ScalaTest - Exploring Tagging, Retry, Runner and More

Introduction ScalaTest is one of the most popular and oldest testing libraries in Scala. As a result, it is used by a huge majority of the Scala codebase. Other popular testing frameworks are MUnit, uTest and so on. In this blog, I would like to take...

Scribblings of an introvert
One of the best assertions in #ScalaTest is `should compile` For example, `"val a: Int = 1" should compile`. It takes a string and evaluates it, and reports whether that would compile and be in place wherever it is in the method. I wish I had that in #Java and #assertj

Principal Technologist Episode 8 Scala Mars Rover Interview Hints
https://www.xenonique.co.uk/blog/2023/05/24/principal-technologist-e8-scala-mars-rover-interview-hints/
#scala #tdd #development #scalatest #interview #programming #marsRover #blacktechtwitter #blacktiktok

Divided in 3 parts for easier consumption of the material.

If you looking to break into the Scala world, get the gig then here is one answer to the Mars problem.

Oh yes this is Scala 2.13.10 and SBT 1.8.2

Oh yes @Java is 28 years old!! Can you bloody believe it?!

Design for successful digital software development and engineering architecture

#scalatest

("1", 2) shouldBe (1, 2)

というふうにタプルのなかの文字列だけは、エラーの原因が分からないログになる。

Expected :(1,2)
Actual :(1,2)

#scalatest #scala
ScalaTestのshouldBeとmustBeの違いは何か - $shibayu36->blog; https://blog.shibayu36.org/entry/2017/08/30/084816

違いは無いのか。mjk.

ScalaTestのshouldBeとmustBeの違いは何か - $shibayu36->blog;

ScalaTestのMatchers系にshouldBeとmustBeがあって、どういう違いがあるのだろうと気になったので調べてみたのでメモ。http://www.scalatest.org/user_guide/using_matchers を読むと、 Trait MustMatchers is an alternative to Matchers that provides the exact same meaning, syntax, and behavior as Matchers, but uses the verb must instead of should. The two t…

Hatena Blog

#scalatest
ScalaTest https://www.scalatest.org/user_guide/using_scalatest_with_sbt

今は、並列実行がデフォルトなのか。

ScalaTest

#scalatest
ScalaTest's cute doRunRunRunDaDoRunRun | Adventure + Coder = Codes http://www.adventurecoder.com/2013/10/scalatests-cute-dorunrunrundadorunrun.html

なんだ、このメソッド名は🤣

ScalaTest's cute doRunRunRunDaDoRunRun

It helps to cheer up looking at the error log! :)