<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>testing on Maëlle Salmon&#39;s personal website</title>
    <link>https://masalmon.eu/tags/testing/</link>
    <description>Recent content in testing on Maëlle Salmon&#39;s personal website</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <copyright>Licence: &lt;a href=&#34;https://creativecommons.org/licenses/by-sa/2.0/&#34;&gt;CC BY-SA&lt;/a&gt;</copyright>
    <lastBuildDate>Mon, 16 Oct 2023 00:00:00 +0000</lastBuildDate>
    
	<atom:link href="https://masalmon.eu/tags/testing/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>The real reset button for local mess fom tests: withr::deferred_run()</title>
      <link>https://masalmon.eu/2023/10/16/test-local-mess-reset/</link>
      <pubDate>Mon, 16 Oct 2023 00:00:00 +0000</pubDate>
      
      <guid>https://masalmon.eu/2023/10/16/test-local-mess-reset/</guid>
      <description>This post was featured on the R Weekly highlights podcast hosted by Eric Nantz and Mike Thomas.
Following last week&amp;rsquo;s post on my testing workflow enhancements, Jenny Bryan kindly reminded me of the existence of an actual reset button when you&amp;rsquo;ve been interactively running tests that include some &amp;ldquo;local mess&amp;rdquo;: withr::local_envvar(), withr::local_dir(), usethis::local_project()&amp;hellip; The reset button is withr::deferred_run().
It is documented in Jenny&amp;rsquo;s article about test fixtures:
 Since the global environment isn&amp;rsquo;t perishable, like a test environment is, you have to call deferred_run() explicitly to execute the deferred events.</description>
    </item>
    
    <item>
      <title>Two recent enhancements to my testing workflow</title>
      <link>https://masalmon.eu/2023/10/09/test-workflow-enhancement/</link>
      <pubDate>Mon, 09 Oct 2023 00:00:00 +0000</pubDate>
      
      <guid>https://masalmon.eu/2023/10/09/test-workflow-enhancement/</guid>
      <description>I spend a lot of quality time with testthat, that sometimes deigns to praise my code with emojis, sometimes has to encourage me. No one gets it right on their first try apparently?
Anyway, in honor of testthat 3.2.0 release 🎉 👏, I&amp;rsquo;d like to mention two small things that improved my testing workflow a whole lot!
Running one single test at a time Under testthat 3.2.0 minor features lies a small gem:</description>
    </item>
    
  </channel>
</rss>