<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Cedes</title>
    <description>The latest articles on Forem by Cedes (@cedes).</description>
    <link>https://forem.com/cedes</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1210040%2F46b3ad13-2bf5-4881-a519-86f32a0a7d07.JPG</url>
      <title>Forem: Cedes</title>
      <link>https://forem.com/cedes</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/cedes"/>
    <language>en</language>
    <item>
      <title>Customizing Terminal in Mac</title>
      <dc:creator>Cedes</dc:creator>
      <pubDate>Fri, 02 Feb 2024 20:35:30 +0000</pubDate>
      <link>https://forem.com/cedes/customizing-terminal-in-mac-4</link>
      <guid>https://forem.com/cedes/customizing-terminal-in-mac-4</guid>
      <description>&lt;h2&gt;
  
  
  Window Settings
&lt;/h2&gt;

&lt;p&gt;There are various options you can set to personalize your terminal. These can include the window title, tab title, directory path view, etc.&lt;br&gt;
&lt;code&gt;Terminal &amp;gt; Settings&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Themes
&lt;/h2&gt;

&lt;p&gt;Mac has default themes you can apply to your terminal. Each theme has settings for different colors of backgrounds and font. You can import your own theme or choose any of the existing ones.&lt;br&gt;
&lt;code&gt;Terminal &amp;gt; Settings&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Terminal Prompt
&lt;/h2&gt;

&lt;p&gt;Create a .zshrc file &lt;br&gt;
After changing your settings, save the file and run using&lt;br&gt;
&lt;code&gt;source .zshrc&lt;/code&gt;. You can view the changes in a different terminal.&lt;/p&gt;

&lt;h2&gt;
  
  
  My personal settings
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fog592dy0c9rsfdi1qzm0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fog592dy0c9rsfdi1qzm0.png" alt="Screenshot of the custom prompt in terminal view" width="466" height="34"&gt;&lt;/a&gt;&lt;br&gt;
&lt;code&gt;export PS1="%F{219}%n %F{099}%D@%T %F{015}%F{111}%~%F{015} $ "&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;p&gt;XTerm color sheet&lt;br&gt;
&lt;a href="https://www.tweaking4all.com/software/macosx-software/xterm-color-cheat-sheet/"&gt;https://www.tweaking4all.com/software/macosx-software/xterm-color-cheat-sheet/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>bash</category>
    </item>
    <item>
      <title>BDD Testing</title>
      <dc:creator>Cedes</dc:creator>
      <pubDate>Thu, 11 Jan 2024 17:22:16 +0000</pubDate>
      <link>https://forem.com/cedes/bdd-testing-j2f</link>
      <guid>https://forem.com/cedes/bdd-testing-j2f</guid>
      <description>&lt;h2&gt;
  
  
  What is BDD Testing?
&lt;/h2&gt;

&lt;p&gt;BDD is Behavior Driven Development Testing.&lt;br&gt;
It's an Agile way where testers write cases in a simple way for anyone to understand.&lt;br&gt;
Gherkin language is used for BDD to describe scenarios and outcomes using Given, When, and Then statements.&lt;/p&gt;
&lt;h2&gt;
  
  
  Frameworks
&lt;/h2&gt;

&lt;p&gt;Cucumber is a framework that outlines the scenarios in a feature file, and formulates the tests with Java code in another file.&lt;/p&gt;
&lt;h2&gt;
  
  
  Advantages to Cucumber
&lt;/h2&gt;

&lt;p&gt;We can use parameterized tests for code reusability using Scenario Outlines and Examples.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Scenario Outline: 
Given any day of the week
When it is &amp;lt;time&amp;gt; o'clock
Then I should eat &amp;lt;dish&amp;gt; for &amp;lt;meal&amp;gt;

Examples:
| time |   dish   |    meal   |
| 8 AM | pancakes | breakfast |
| 1 PM | sandwich |   lunch   |
| 6 PM |   pasta  |   dinner  |

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This allows us to reuse the scenario outline for all of these different cases without having to copy and paste the Scenario, Given, and Then statements.&lt;/p&gt;

</description>
      <category>testing</category>
    </item>
  </channel>
</rss>
