Skip to main content

Posts

Showing posts with the label rank=2

Git Series (5) — Picking a specific commit

There are scenarios when we want to apply the changes of an earlier commit in a repo, on top of the current repo tree of some branch in the same repo.  Or In some scenarios, we just want all the changes from an earlier commit of this repo into the current staging area and make some more changes before finally committing all the changes to the repo tree. For both scenarios, the git  cherry-pick  command   comes in handy. Git documentation  describes cherry-pick as git-cherry-pick — Apply the changes introduced by some existing commits. Given one or more existing commits, apply the change each one introduces, recording a new commit for each Let’s explain this with an example Step 1- Create a git repo mkdir git-example-cherry-pick && \ cd git-example-cherry-pick && \ git init Step 2- Add a few commits echo "First change" >> first.file && \ git add first.file && \ git commit -m "first commit" echo "Second change" ...

Create a window installer USB on a Mac

Let’s assume for some inexplicable reasons, we want to install the windows operating system on our machines. For this, first, we need to have a windows installer USB. Photo by  Brina Blum  on  Unsplash If you like to spend money, you can buy an original windows installer USB from  here   and skip the remaining post.  Otherwise, You can create an installer USB by yourself by performing   these step s  on a windows machine. But wait. The reason that we want to create a windows installer USB in the first place was, that we do not have a machine running windows. Like me, if you only have macOS machines then you can use the below 3 steps to create a windows installer USB. 1- Download windows ISO You can download windows ISO for free from the Microsoft  website .  1.1-  Choose the  windows edition  as follows 1.2-  Choose the language as  English 1.3-  Choose  64 bits  version 1.4-  Above step will ...

BDD Series (4) — karate API testing. Hands-on!

Photo by  Jason Briscoe  on  Unsplash In our previous post  Anatomy of a feature fil e, we talked about the feature files, the Gherkin syntax, and Gherkin keywords. In this post, we will see a quick overview of Intuit Karate based on Gherkin. Karate DSL uses Gherkin syntax, If you’re new to Cucumber & Gherkin, I highly recommend reading the previous post to understand terminologies. Why Karate Cucumber , the flagship BDD framework, popularized the  programming language-neutral , behavioral test constructs, written in  human languages  using Gherkin.  The  human-language  test steps mentioned in the  feature file  are backed by programming-language-dependent  Step-Definition  files, that are processed by the Cucumber engine. In today's world, development teams often work on Headless systems, which are comprised of only the backend APIs .  The Gherkin steps to test such systems are fixed. Such as but not limite...