<?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: Kevin Kaland</title>
    <description>The latest articles on DEV Community by Kevin Kaland (@wizonesolutions).</description>
    <link>https://dev.to/wizonesolutions</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%2F618402%2F663ce916-18c4-49f7-a35c-12f6e3c773f7.jpeg</url>
      <title>DEV Community: Kevin Kaland</title>
      <link>https://dev.to/wizonesolutions</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/wizonesolutions"/>
    <language>en</language>
    <item>
      <title>WIP: Testing in Meteor</title>
      <dc:creator>Kevin Kaland</dc:creator>
      <pubDate>Tue, 27 Apr 2021 15:16:06 +0000</pubDate>
      <link>https://dev.to/wizonesolutions/wip-testing-in-meteor-483j</link>
      <guid>https://dev.to/wizonesolutions/wip-testing-in-meteor-483j</guid>
      <description>&lt;p&gt;While reading through the &lt;a href="https://guide.meteor.com/testing.html"&gt;Meteor Guide article on testing&lt;/a&gt;, I noticed that the section on acceptance testing still recommended Chimp. Chimp is...a bit old at this point, and Chimp 2.0 is not maintained. I see &lt;a href="https://forums.meteor.com/t/2020-best-test-packages/54587/4?u=wizonesolutions"&gt;people on the forums recommending cypress.io for acceptance tests&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Since I do I have one end-to-end test I want to write, I figured I'd try to document at least some of my experience setting up testing in my app DayMeter as I go. I might also propose changes to the Meteor Guide article. This post will be my way of thinking about it.&lt;/p&gt;

&lt;p&gt;I'll be starting implementation this week (it's 27 Apr 2021 right now), so I will come back and revise this post as I go.&lt;/p&gt;

&lt;p&gt;28 Apr:&lt;/p&gt;

&lt;p&gt;I'm seeing varying opinions on what to use for unit and integration tests. &lt;a href="https://forums.meteor.com/t/2020-best-test-packages/54587/2?u=wizonesolutions"&gt;jkuester and @hexsprite generally use what's in the Guide&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://forums.meteor.com/t/which-testing-frameworks-are-popular-today-end-2018/46480/11?u=wizonesolutions"&gt;awatson1978's approach differs in some ways&lt;/a&gt;. She uses Jest for UI testing and Nightwatch for end-to-end tests. Cypress isn't mentioned, but it might not have been as mature in 2019. I don't know enough to comment.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I'm going to start with the Meteor Guide recommendations and see if they get the job done.&lt;/strong&gt; I'll probably try to use as few packages as possible unless things start getting cumbersome. I don't have many initial tests to write, so I'll see how things go.&lt;/p&gt;

&lt;p&gt;29 Apr:&lt;/p&gt;

&lt;p&gt;A lot of people seem to just use Cypress. I probably could too, although I have one method where I probably want to make sure it's working a little more closely than just looking at its output. So I'm going to try Mocha and an integration test for that.&lt;/p&gt;

&lt;p&gt;22 Sep:&lt;/p&gt;

&lt;p&gt;Long break, right? 😅 I've been working on this again, and have settled on using Mocha for integration tests. It works great for my purposes. I'm also using &lt;code&gt;xolvio:cleaner&lt;/code&gt; to reset the database before each test. I was able to fix a longstanding bug in the app and ensure I didn't cause any critical regressions. I'm glad I wrote tests!&lt;/p&gt;

&lt;p&gt;Today, I have to figure out what I want to do for acceptance testing. Once that's done, I'll take a look at Storybook testing again if I have time. There's a different testing landscape there, some of it brittle, some of it more stable. I have to think about if I have any "critical paths" that I'm likely to break as I keep developing things or if simply have stories for each component that I check up on manually is good enough (given that I will also have acceptance for the most important functionality).&lt;/p&gt;

&lt;p&gt;I'm leaning towards not doing more testing in Storybook specifically &lt;em&gt;yet&lt;/em&gt;. That seems like the right amount of testing for now.&lt;/p&gt;

&lt;p&gt;I'll then aim for test-driven development (TDD) going forward.&lt;/p&gt;

</description>
      <category>meteor</category>
      <category>testing</category>
      <category>react</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Persistent notifications in notification bar (e.g. countdown timer, stopwatch)?</title>
      <dc:creator>Kevin Kaland</dc:creator>
      <pubDate>Mon, 26 Apr 2021 12:00:37 +0000</pubDate>
      <link>https://dev.to/wizonesolutions/persistent-notifications-in-notification-bar-e-g-countdown-timer-stopwatch-1hi8</link>
      <guid>https://dev.to/wizonesolutions/persistent-notifications-in-notification-bar-e-g-countdown-timer-stopwatch-1hi8</guid>
      <description>&lt;p&gt;I'm trying to decide whether I should create a React Native app at this point or if I can wait a little longer.&lt;/p&gt;

&lt;p&gt;My app has a countdown timer showing how long is left of the current task. I want to show a persistent notification when the timer is active and has time remaining so I can swipe down and see how long it will be before the next notification. I might also want to embed actions (e.g. Done or Add 1 minute) that would cause actions to happen in the background.&lt;/p&gt;

&lt;p&gt;But I'm not sure if PWAs even have the concept of running in the background. I'm not that experienced with them yet and am at the stage where I'm thinking about if it's worth it or if I should go straight for a mobile app.&lt;/p&gt;

</description>
      <category>pwa</category>
      <category>mobile</category>
      <category>reactnative</category>
      <category>discuss</category>
    </item>
  </channel>
</rss>
