# Henrik Lau Eriksson

Henrik Lau Eriksson on the conduct of code

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Creating custom PowerToys Run plugins

DevFeed: [Creating custom PowerToys Run plugins](<https://devfeed.tech/articles/creating-custom-powertoys-run-plugins-20777.md>)

Original publisher: [Read original article](<https://conductofcode.io/post/creating-custom-powertoys-run-plugins/>)

Author: {"twitter"=\>"hlaueriksson"}

Published: 2024-02-13T22:00:00Z

Content type: tutorial

Language: en

Sources: [Henrik Lau Eriksson](<https://devfeed.tech/sources/henrik-lau-eriksson.md>)

Topics: [Microsoft PowerToys](<https://devfeed.tech/topics/powertoys.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [Learning](<https://devfeed.tech/topics/learning.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [c-sharp](<https://devfeed.tech/tags/c-sharp.md>), [calculator](<https://devfeed.tech/tags/calculator.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [github](<https://devfeed.tech/tags/github.md>), [icons](<https://devfeed.tech/tags/icons.md>), [launcher](<https://devfeed.tech/tags/launcher.md>), [library](<https://devfeed.tech/tags/library.md>), [metadata](<https://devfeed.tech/tags/metadata.md>), [modular](<https://devfeed.tech/tags/modular.md>), [nuget](<https://devfeed.tech/tags/nuget.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [plugins](<https://devfeed.tech/tags/plugins.md>), [powertoys](<https://devfeed.tech/tags/powertoys.md>), [query](<https://devfeed.tech/tags/query.md>), [run](<https://devfeed.tech/tags/run.md>)

### AI overview

PowerToys Run plugins can be built as Visual Studio Class Library projects. The excerpt recommends checking the official plugin checklist and browsing existing plugins for examples, then adding the required project files, plugin logic, metadata and typically light and dark icons. Dependencies include PowerToys and Wox assemblies; there are no official NuGet packages for them. Authors can commit the needed DLLs for both platform architectures, build the other architecture from source, reference PowerToys projects directly, or use a NuGet package and project templates created by the article's author. The excerpt begins describing plugin metadata but cuts off before explaining the implementation.

### Source excerpt

A step by step guide on how to create community plugins for PowerToys Run

## Retry flaky tests with dotnet test and PowerShell

DevFeed: [Retry flaky tests with dotnet test and PowerShell](<https://devfeed.tech/articles/retry-flaky-tests-with-dotnet-test-and-powershell-20782.md>)

Original publisher: [Read original article](<https://conductofcode.io/post/retry-flaky-tests-with-dotnet-test-and-powershell/>)

Author: {"twitter"=\>"hlaueriksson"}

Published: 2023-03-26T19:00:00Z

Content type: tutorial

Language: en

Sources: [Henrik Lau Eriksson](<https://devfeed.tech/sources/henrik-lau-eriksson.md>)

Topics: [Test automation](<https://devfeed.tech/topics/test-automation.md>), [PowerShell](<https://devfeed.tech/topics/powershell.md>), [Selenium](<https://devfeed.tech/topics/selenium.md>), [mstest](<https://devfeed.tech/topics/mstest.md>)

Tags: [c-sharp](<https://devfeed.tech/tags/c-sharp.md>), [cli](<https://devfeed.tech/tags/cli.md>), [dotnet](<https://devfeed.tech/tags/dotnet.md>), [flaky](<https://devfeed.tech/tags/flaky.md>), [flaky-tests](<https://devfeed.tech/tags/flaky-tests.md>), [mstest](<https://devfeed.tech/tags/mstest.md>), [nunit](<https://devfeed.tech/tags/nunit.md>), [powershell](<https://devfeed.tech/tags/powershell.md>), [retries](<https://devfeed.tech/tags/retries.md>), [retry](<https://devfeed.tech/tags/retry.md>), [script](<https://devfeed.tech/tags/script.md>), [test](<https://devfeed.tech/tags/test.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tests](<https://devfeed.tech/tags/tests.md>), [xunit](<https://devfeed.tech/tags/xunit.md>)

### AI overview

The PowerShell `test.ps1` script runs `dotnet test`, reads failed tests from the TRX result file, and reruns those tests up to a configured retry count. It can pass the current retry iteration to the test framework, filter selected tests, and treat a configured percentage of passed tests as success. It returns exit code 0 when tests pass or meet that threshold; otherwise, it returns the number of failed tests. The excerpt says the author showcases NUnit, MSTest, and xUnit integrations, but cuts off during the xUnit details. Parameter defaults, ranges, and sample commands are omitted.

### Source excerpt

Introducing test.ps1, a script for running flaky tests - Keeps track of failing tests and retries them - Notifies the test framework of the current retry iteration - Makes it possible to accept a certain percentage of failing tests - Outputs the test result in a coherent way

## Introducing LoFuUnit

DevFeed: [Introducing LoFuUnit](<https://devfeed.tech/articles/introducing-lofuunit-20780.md>)

Original publisher: [Read original article](<https://conductofcode.io/post/introducing-lofuunit/>)

Author: {"twitter"=\>"hlaueriksson"}

Published: 2019-12-29T19:00:00Z

Content type: tutorial

Language: en

Sources: [Henrik Lau Eriksson](<https://devfeed.tech/sources/henrik-lau-eriksson.md>)

Topics: [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Unit testing](<https://devfeed.tech/topics/unit-testing.md>), [C#](<https://devfeed.tech/topics/csharp.md>), [.NET](<https://devfeed.tech/topics/net.md>), [Mocking](<https://devfeed.tech/topics/mocking.md>)

Tags: [bdd](<https://devfeed.tech/tags/bdd.md>), [c-sharp](<https://devfeed.tech/tags/c-sharp.md>), [mocking](<https://devfeed.tech/tags/mocking.md>), [net](<https://devfeed.tech/tags/net.md>), [nuget](<https://devfeed.tech/tags/nuget.md>), [testing](<https://devfeed.tech/tags/testing.md>), [unit-testing](<https://devfeed.tech/tags/unit-testing.md>)

### AI overview

This tutorial introduces LoFuUnit, a .NET and C# testing framework based on local functions. It demonstrates writing unit and BDD-style tests, using NUnit integration, and creating auto-mocked tests with LoFuUnit.AutoNSubstitute.

### Source excerpt

Testing with Local Functions in .NET / C# with your favorite Unit Testing Framework

## Introducing Jekyll URL Shortener

DevFeed: [Introducing Jekyll URL Shortener](<https://devfeed.tech/articles/introducing-jekyll-url-shortener-20779.md>)

Original publisher: [Read original article](<https://conductofcode.io/post/introducing-jekyll-url-shortener/>)

Author: {"twitter"=\>"hlaueriksson"}

Published: 2018-11-01T06:00:00Z

Content type: tutorial

Language: en

Sources: [Henrik Lau Eriksson](<https://devfeed.tech/sources/henrik-lau-eriksson.md>)

Topics: [Jekyll](<https://devfeed.tech/topics/jekyll.md>), [GitHub Pages](<https://devfeed.tech/topics/github-pages.md>), [Web](<https://devfeed.tech/topics/web.md>)

Tags: [github](<https://devfeed.tech/tags/github.md>), [github-pages](<https://devfeed.tech/tags/github-pages.md>), [jekyll](<https://devfeed.tech/tags/jekyll.md>), [url](<https://devfeed.tech/tags/url.md>)

### AI overview

Jekyll URL Shortener is a template repository for creating short links with Jekyll and GitHub Pages. The described setup is to buy and configure a short domain, fork or clone the repository, adjust its Jekyll and hosting settings, then create short links as Jekyll pages in the repository root. The author cites branded domains, custom slugs, emoji links, and Google Analytics tracking as possible benefits. Redirects use the jekyll-redirect-from plugin to serve an HTML file with an HTTP-Refresh meta tag; the text says this does not use permanent or temporary HTTP redirect status codes.

### Source excerpt

Building a URL Shortener with Jekyll and GitHub Pages

## Easy Approach to Requirements Syntax and the segue to Behavior Driven Development

DevFeed: [Easy Approach to Requirements Syntax and the segue to Behavior Driven Development](<https://devfeed.tech/articles/easy-approach-to-requirements-syntax-and-the-segue-to-behavior-driven-development-20778.md>)

Original publisher: [Read original article](<https://conductofcode.io/post/easy-approach-to-requirements-syntax-and-the-segue-to-behavior-driven-development/>)

Author: {"twitter"=\>"hlaueriksson"}

Published: 2017-07-31T20:00:00Z

Content type: article

Language: en

Sources: [Henrik Lau Eriksson](<https://devfeed.tech/sources/henrik-lau-eriksson.md>)

Topics: [Behavior-driven development](<https://devfeed.tech/topics/bdd.md>), [Requirements](<https://devfeed.tech/topics/requirements.md>), [User Stories](<https://devfeed.tech/topics/user-stories.md>), [Specifications](<https://devfeed.tech/topics/specifications.md>)

Tags: [acceptance](<https://devfeed.tech/tags/acceptance.md>), [agile-development](<https://devfeed.tech/tags/agile-development.md>), [bdd](<https://devfeed.tech/tags/bdd.md>), [behavior](<https://devfeed.tech/tags/behavior.md>), [requirements](<https://devfeed.tech/tags/requirements.md>), [specflow](<https://devfeed.tech/tags/specflow.md>), [syntax](<https://devfeed.tech/tags/syntax.md>), [templates](<https://devfeed.tech/tags/templates.md>)

### AI overview

EARS (Easy Approach to Requirements Syntax) uses five templates--ubiquitous, event-driven, state-driven, unwanted behavior, and optional features--to structure requirements and address problems such as ambiguity, omission, and untestability. The author hypothesizes that this structure will make it easier to move from user stories and acceptance criteria to Behavior Driven Development, with business people writing SpecFlow feature files as the measure of success. The excerpt begins a Stack class example but cuts off before showing it.

### Source excerpt

I was attending a conference six months ago and listened to a talk about quality. During the talk, I was introduced to EARS -- Easy Approach to Requirements Syntax. This way of writing requirements struck a chord with me, given my prior experience reading and writing requirement specifications.

## Managing content for a JAMstack site with Netlify CMS

DevFeed: [Managing content for a JAMstack site with Netlify CMS](<https://devfeed.tech/articles/managing-content-for-a-jamstack-site-with-netlify-cms-20781.md>)

Original publisher: [Read original article](<https://conductofcode.io/post/managing-content-for-a-jamstack-site-with-netlify-cms/>)

Author: {"twitter"=\>"hlaueriksson"}

Published: 2017-06-30T12:00:00Z

Content type: article

Language: en

Sources: [Henrik Lau Eriksson](<https://devfeed.tech/sources/henrik-lau-eriksson.md>)

Topics: [Jamstack](<https://devfeed.tech/topics/jamstack.md>), [Netlify](<https://devfeed.tech/topics/netlify.md>), [static-site-generator](<https://devfeed.tech/topics/static-site-generator.md>), [Hugo](<https://devfeed.tech/topics/hugo.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [apis](<https://devfeed.tech/tags/apis.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [azure](<https://devfeed.tech/tags/azure.md>), [azure-functions](<https://devfeed.tech/tags/azure-functions.md>), [blog](<https://devfeed.tech/tags/blog.md>), [blog-post](<https://devfeed.tech/tags/blog-post.md>), [build-tool](<https://devfeed.tech/tags/build-tool.md>), [callback](<https://devfeed.tech/tags/callback.md>), [client](<https://devfeed.tech/tags/client.md>), [cms](<https://devfeed.tech/tags/cms.md>), [code](<https://devfeed.tech/tags/code.md>), [command](<https://devfeed.tech/tags/command.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [content](<https://devfeed.tech/tags/content.md>), [hugo](<https://devfeed.tech/tags/hugo.md>), [jamstack](<https://devfeed.tech/tags/jamstack.md>), [modern-web-development](<https://devfeed.tech/tags/modern-web-development.md>), [netlify](<https://devfeed.tech/tags/netlify.md>), [web](<https://devfeed.tech/tags/web.md>), [web-development](<https://devfeed.tech/tags/web-development.md>)

### AI overview

Netlify CMS provides a Git-based way for non-technical users to manage content for a JAMstack site: edits are pushed to Git and trigger a new site build. The excerpt describes adding it to a Hugo site using a five-part setup: create a Netlify site from a Git repository, configure its build, register a GitHub OAuth application, install an authentication provider, and update the site code. It presents Netlify CMS as an open-source option for static site generators, but does not include the specific build settings, OAuth values, or code changes.

### Source excerpt

Content for the modern web development architecture:

## Building a JAMstack site with Hugo and Azure Functions

DevFeed: [Building a JAMstack site with Hugo and Azure Functions](<https://devfeed.tech/articles/building-a-jamstack-site-with-hugo-and-azure-functions-20776.md>)

Original publisher: [Read original article](<https://conductofcode.io/post/building-a-jamstack-site-with-hugo-and-azure-functions/>)

Author: {"twitter"=\>"hlaueriksson"}

Published: 2017-05-31T20:00:00Z

Content type: tutorial

Language: en

Sources: [Henrik Lau Eriksson](<https://devfeed.tech/sources/henrik-lau-eriksson.md>)

Topics: [Jamstack](<https://devfeed.tech/topics/jamstack.md>), [Hugo](<https://devfeed.tech/topics/hugo.md>), [azure functions](<https://devfeed.tech/topics/azure-functions.md>), [static-site-generator](<https://devfeed.tech/topics/static-site-generator.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>)

Tags: [apis](<https://devfeed.tech/tags/apis.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [azure](<https://devfeed.tech/tags/azure.md>), [azure-functions](<https://devfeed.tech/tags/azure-functions.md>), [bootstrap](<https://devfeed.tech/tags/bootstrap.md>), [css](<https://devfeed.tech/tags/css.md>), [hugo](<https://devfeed.tech/tags/hugo.md>), [jamstack](<https://devfeed.tech/tags/jamstack.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [jquery](<https://devfeed.tech/tags/jquery.md>), [modern-web-development](<https://devfeed.tech/tags/modern-web-development.md>), [web-development](<https://devfeed.tech/tags/web-development.md>)

### AI overview

The excerpt describes a JAMstack recipe site built with Hugo, jQuery, and Azure Functions: Hugo generates the static markup, while JavaScript calls reusable APIs implemented as Azure Functions. It presents the approach as offering better performance, security, scaling cost, and developer experience, and highlights Hugo's fast builds and Windows installation. The example uses TOML configuration and data, Markdown content with front matter, Hugo templates and partials, and page attributes to provide data to JavaScript. The excerpt ends during the JavaScript description, so it does not show the full implementation or how the API functions work.

### Source excerpt

Modern web development architecture:

## Serverless with Azure Functions

DevFeed: [Serverless with Azure Functions](<https://devfeed.tech/articles/serverless-with-azure-functions-20784.md>)

Original publisher: [Read original article](<https://conductofcode.io/post/serverless-with-azure-functions/>)

Author: {"twitter"=\>"hlaueriksson"}

Published: 2017-04-30T10:00:00Z

Content type: tutorial

Language: en

Sources: [Henrik Lau Eriksson](<https://devfeed.tech/sources/henrik-lau-eriksson.md>)

Topics: [azure functions](<https://devfeed.tech/topics/azure-functions.md>), [Serverless](<https://devfeed.tech/topics/serverless.md>), [ASP.NET Core](<https://devfeed.tech/topics/asp-net-core.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [GitHub](<https://devfeed.tech/topics/github.md>)

Tags: [asp-net-core](<https://devfeed.tech/tags/asp-net-core.md>), [azure](<https://devfeed.tech/tags/azure.md>), [azure-functions](<https://devfeed.tech/tags/azure-functions.md>), [c-sharp](<https://devfeed.tech/tags/c-sharp.md>), [cli](<https://devfeed.tech/tags/cli.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [github](<https://devfeed.tech/tags/github.md>), [nuget](<https://devfeed.tech/tags/nuget.md>), [serverless](<https://devfeed.tech/tags/serverless.md>)

### AI overview

A practical account of migrating an ASP.NET Core Web API to Azure Functions. It explains using the Azure Functions CLI for local project creation, development, testing, running, and debugging, then deploying the project to Azure Functions with continuous deployment through GitHub. The article also discusses Azure Functions support in the CommandQuery packages and managing dependencies to match the hosting environment.

### Source excerpt

I set out to learn about Azure Functions and this is the knowledge I have gathered so far.

## Secure and explore ASP.NET Core Web APIs

DevFeed: [Secure and explore ASP.NET Core Web APIs](<https://devfeed.tech/articles/secure-and-explore-asp-net-core-web-apis-20783.md>)

Original publisher: [Read original article](<https://conductofcode.io/post/secure-and-explore-aspnet-core-web-apis/>)

Author: {"twitter"=\>"hlaueriksson"}

Published: 2017-03-31T21:00:00Z

Content type: tutorial

Language: en

Sources: [Henrik Lau Eriksson](<https://devfeed.tech/sources/henrik-lau-eriksson.md>)

Topics: [ASP.NET Core](<https://devfeed.tech/topics/asp-net-core.md>), [JSON Web Tokens](<https://devfeed.tech/topics/jwt.md>), [Swagger](<https://devfeed.tech/topics/swagger.md>), [Postman](<https://devfeed.tech/topics/postman.md>)

Tags: [asp-net-core](<https://devfeed.tech/tags/asp-net-core.md>), [c-sharp](<https://devfeed.tech/tags/c-sharp.md>), [jwt](<https://devfeed.tech/tags/jwt.md>), [postman](<https://devfeed.tech/tags/postman.md>), [swagger](<https://devfeed.tech/tags/swagger.md>), [ui](<https://devfeed.tech/tags/ui.md>), [web-apis](<https://devfeed.tech/tags/web-apis.md>)

### AI overview

The excerpt describes an ASP.NET Core Web API with an in-memory stack controller, JWT-based authorization, and Swagger tooling. It adds Swashbuckle.AspNetCore and Microsoft.AspNetCore.Authentication.JwtBearer, uses controller attributes to require authorization and document response types, and configures JWT claims, a secret signing key, and a one-hour default token lifetime. It recommends keeping the signing key secret, with Secret Manager suggested. Swagger JSON and interactive Swagger UI are exposed through configured routes; the excerpt also says the app uses options and dependency injection for configuration. Postman is mentioned in the teaser, but the supplied text does not show how it is used.

### Source excerpt

How to create a ASP.NET Core Web API, secure it with JSON Web Tokens and explore it with Swagger UI and Postman.

## Automocking and the Dependency Inversion Principle

DevFeed: [Automocking and the Dependency Inversion Principle](<https://devfeed.tech/articles/automocking-and-the-dependency-inversion-principle-20775.md>)

Original publisher: [Read original article](<https://conductofcode.io/post/automocking-and-the-dependency-inversion-principle/>)

Author: {"twitter"=\>"hlaueriksson"}

Published: 2017-02-28T20:00:00Z

Content type: article

Language: en

Sources: [Henrik Lau Eriksson](<https://devfeed.tech/sources/henrik-lau-eriksson.md>)

Topics: [Dependency Inversion](<https://devfeed.tech/topics/dependency-inversion.md>), [Dependency injection](<https://devfeed.tech/topics/dependency-injection.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>)

Tags: [c-sharp](<https://devfeed.tech/tags/c-sharp.md>), [dependency-inversion-principle](<https://devfeed.tech/tags/dependency-inversion-principle.md>), [solid](<https://devfeed.tech/tags/solid.md>), [testing](<https://devfeed.tech/tags/testing.md>), [unit-tests](<https://devfeed.tech/tags/unit-tests.md>), [xunit](<https://devfeed.tech/tags/xunit.md>)

### AI overview

The article revisits an automocking base class after the earlier approach failed with internal subjects. It presents internal visibility as a way to keep implementation classes private while relying on abstractions, and describes granting the unit test assembly access to internal types through an AssemblyInfo friend-assembly attribute. The tests mimic Machine.Fakes-style automocking: fixtures inherit from a base class, create fakes, and access the subject and its injected dependencies, with methods available to inject real or fake objects. StructureMap is configured to construct internal classes; clients depend on public interfaces and use the IoC container to resolve concrete implementations. The excerpt does not preserve the implementation code or complete test details.

### Source excerpt

I had reason to revisit the automocked base class from a previous blog post. I am working with another code base and have new opportunities for automocking. We have a lot of internal classes. Approximately 30% of the classes are marked as internal. The old approach did not work anymore.