Post originally published on https://www.madewithtea.com. Republished with author’s permission. TLDR: Kafka Streams is a deployment-agnostic stream processing library written in Java. Even though Kafka has a great test coverage, there is no helper code for writing unit-tests for your own Kafka Streams topologies. I wrote a little helper library Mocked Streams in Scala, which allows […]
Category Software Engineering
Continuous Deployment with Google Container Engine and Kubernetes
Introduction This tutorial will show you how to deploy a sample microservices application to Kubernetes and set up continuous deployment using SemaphoreCI. It includes a crash introduction to Kubernetes, Google Container Engine, and building an automated deploy process. Kubernetes, or “k8s” for short, is an orchestration tool for container native applications. Note that Kubernetes is […]
Testing React Components with AVA
Introduction This is the third tutorial in our series on testing a React and Redux application with AVA. In this tutorial, we will build the actual UI for our todo application using React. We’ll connect our React components to the Redux store, test them using AVA and Airbnb’s Enzyme, and see how React makes it […]
Integration Testing Phoenix with Wallaby
Post originally published on https://hashrocket.com. Republished with author’s permission. Let’s write an integration test for Phoenix using Wallaby. Integration tests are used for behavior description and feature delivery. From the test-writer’s perspective, they are often seen as a capstone, or, to the outside-in school, an initial 10,000-foot description of the landscape. At Hashrocket we’ve been […]
Integration Testing Ruby on Rails with Minitest and Capybara
Introduction In this tutorial, we’ll cover how to do integration tests in Rails using Minitest and Capybara. We’ll also cover how integration tests can sometimes serve as a replacement for controller tests. Prerequisites To follow this tutorial, you’ll need to have Ruby installed along with Rails. This tutorial was tested using Ruby version 2.3.3, Rails […]
Snapshot Testing React Components with Jest
Introduction Testing is a double-edged sword. On one hand, having a solid test suite makes code easier to refactor, and gives confidence that it works the way it should. On the other hand, tests must be written and maintained. They have a cost, like any other code. In a magical world, we could write our […]
Keeping Logs Available When Rebuilding a Build
Flaky tests can be hard to track down. When you are working on a new feature, your builds can fail because of one or a few unrelated flaky tests.
Top 10 Semaphore Community Tutorials in 2016
As 2016 is approaching its end, it’s time to look back and see what we’ve accomplished this year. Our team of Semaphore developers, community writers and editors are big on learning new things and sharing knowledge, so we made sure to publish at least one new tutorial or article on BDD, testing tools, automating DevOps […]
Unit Testing Chef Guard Clauses: Command Strings vs. Ruby Blocks
Post originally published on David Pell. Republished with author’s permission. Chef Guards The great thing about the major Chef resources (file, directory, package, etc.) is that they’re idempotent, meaning that they will produce the same effect if executed more than once. Chef takes care of this under the hood. If, however, you find yourself needing […]
Building and Testing an API Wrapper in Python
Introduction Most websites we use provide an HTTP API to enable developers to access their data from their own applications. For developers utilizing the API, this usually involves making some HTTP requests to the service, and using the responses in their applications. However, this may get tedious since you have to write HTTP requests for […]
Lightweight Docker Images in 5 Steps
Deploying your services packaged in lightweight Docker images has many practical benefits. In a container, your service usually comes with all the dependencies it needs to run, it’s isolated from the rest of the system, and deployment is as simple as running a docker run command on the target system.
Getting Started with BDD in Go Using Ginkgo
Introduction Over the past few years, Go has developed into the language of choice for many types of applications. Its popularity can be attributed to several factors, out of which its testing story is a prominent one. Out of the box, Go comes with a great package for testing. This tutorial will explain how you […]
Activity Monitor: Visualizing Your Team’s Running CI/CD Processes
Growth always has its challenges. With more developers, there are more ongoing projects, branches and CI builds. And sometimes while you work, you find yourself wanting to know what else is in the pipeline on Semaphore.
PHP Versions Used in Commercial Projects, 2016 Edition
As in earlier reports on other languages (see Ruby, Node.js, Python), today we’re sharing data from Semaphore about usage distribution across versions of PHP in active private projects.
Testing Common Redux Patterns in React Using AVA
Introduction This is the second tutorial in our series on testing React and Redux applications. If you haven’t read the first part, we encourage you to do so. Redux is a library for managing state in React applications. Since the code using Redux is composed of many small pieces, it’s very easy to test it. […]