Introduction Testing is one of the ways to ensure the quality of our application, and it comes in many forms. The best known and the most popular among developers is unit testing. However, depending on what, how, and when we are testing, there are other options, e.g. integration, regression, load, acceptance testing, system, end- to-end, […]
Stubbing the AWS SDK
Originaly published on https://devops.college. Republished with author’s permission. If youβre reading this, dear Devop, you can probably remember a time before you were a Devop, or a Site Reliability Engineer, or whatever. Back to a time when you were a Systems Administrator, or a Unix Technician, or an Infrastructure Engineer; when your job involved switch […]
Moving Platform Updates to Changelog
Quick heads up that weβll be publishing future platform updates on the Semaphore changelog.This will help us focus the blog on important product updates and …
Testing Topologies in Kafka Streams
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 […]
Migrating from Snap CI to Semaphore
In the last week, news has spread throughout the CI/CD community about the announced shutdown of Snap CI, one of our highly-respected competitors. If you’re a Snap CI user looking for a new hosted CI/CD solution, here’s a comparison of Semaphore’s and Snap CI’s offering to help you decide if Semaphore is the right choice […]
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 […]
Platform Update on January 24th
The upcoming platform update is scheduled for January 24th, 2017. ChromeDriver has been updated to version 2.27. Erlang receives an update with version 19.2.
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 […]
Ruby 2.4.0 Available In a Minor Platform Update
Ruby 2.4.0. We just released an incremental platform update, versioned 1611.1, adding several new languages to the platform.
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 […]