<?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>DEV Community: Adam Murray</title>
    <description>The latest articles on DEV Community by Adam Murray (@admah).</description>
    <link>https://dev.to/admah</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%2F634870%2Ffb3330cb-21ad-48c7-8e19-e1f49351bfe1.jpeg</url>
      <title>DEV Community: Adam Murray</title>
      <link>https://dev.to/admah</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/admah"/>
    <language>en</language>
    <item>
      <title>Angular 12 &amp; Cypress: Install to Testing in 2 Minutes</title>
      <dc:creator>Adam Murray</dc:creator>
      <pubDate>Mon, 07 Jun 2021 16:32:45 +0000</pubDate>
      <link>https://dev.to/admah/angular-12-cypress-install-to-testing-in-2-minutes-2k3k</link>
      <guid>https://dev.to/admah/angular-12-cypress-install-to-testing-in-2-minutes-2k3k</guid>
      <description>&lt;p&gt;Thanks to the Angular CLI and the &lt;a href="https://www.npmjs.com/package/@cypress/schematic"&gt;Cypress Schematic&lt;/a&gt;, spinning up a new Angular 12 project with Cypress is incredibly easy.&lt;/p&gt;

&lt;h3&gt;
  
  
  Installation 🚀
&lt;/h3&gt;

&lt;p&gt;Here's how to do it in less than 2 minutes:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Install the &lt;a href="https://angular.io/cli"&gt;Angular CLI&lt;/a&gt; if you haven't and create a new project:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ng new angular-cypress-demo
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Navigate to the newly created project directory and install the &lt;a href="https://www.npmjs.com/package/@cypress/schematic"&gt;Cypress Angular Schematic&lt;/a&gt; via the CLI:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ng add @cypress/schematic
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once you've completed these steps, Cypress will be set up with a default config, and basic files and folders will be installed within your project in the &lt;code&gt;cypress&lt;/code&gt; folder - including an initial test.  &lt;/p&gt;

&lt;h3&gt;
  
  
  Additional Information 📝
&lt;/h3&gt;

&lt;p&gt;For more information regarding schematic configuration &lt;a href="https://on.cypress.io/protractor-to-cypress#Angular-Schematic-Configuration?fromDevto=true"&gt;click here&lt;/a&gt;. &lt;/p&gt;

</description>
      <category>angular</category>
      <category>testing</category>
      <category>cypress</category>
      <category>e2e</category>
    </item>
  </channel>
</rss>
