Tuesday 28 April 2020

End-to-end tests with Spring and Test Containers

I've heard previously about test-containers but didn't have chance to read about it. Testcontainers is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.

So basically it simplify you process of creating and maintaining end-to-end tests. You no need external containers you simple can run in on jenkins during your usual testing life cycle.

Two articles illustrate this approach with  Selenium and one more with WireMock

Sunday 26 April 2020

Micrometer - SLF4J but for metrics

Nice tool to try, Micrometer is - facade over the instrumentation clients for a number of popular monitoring systems. Currently, it supports the following monitoring systems: Atlas, Datadog, Graphite, Ganglia, Influx, JMX and Prometheus. More in tutorial

Syntaxis is simple and straightforward:

 Metrics.counter("objects.instance").increment();