#testing
12 posts tagged testing. All posts
Unit testing .NET code with NUnit: setup, assertions and test casesSet up an NUnit test project for .NET, write tests with Assert.That and [TestCase], and run them with dotnet test or Visual Studio.
Benchmarking Rust code with Criterion.rsSet up Criterion.rs to benchmark Rust code on stable: a first benchmark, parameterised inputs, throughput, baselines and HTML reports.
JUnit basics: writing and running unit tests in JavaWrite and run JUnit Jupiter tests in Java, covering the Maven dependency, lifecycle annotations, assertions, parameterized tests and what changed in JUnit 6.
Espresso UI tests on Android: setup, matchers, idling resources and intentsHow to set up Espresso with AndroidX Test, write a UI test with ActivityScenarioRule, handle background work with idling resources, and verify intents.
Swift package conventions: layout, access control, tests and versioningPractical conventions for Swift packages: naming, layout, access control including package, DocC comments, tests, semantic versioning and a clean Package.swift.
Mockito for Android unit tests: mocks, stubbing, and verificationUse Mockito 5 in Android unit tests: create mocks, stub return values, verify calls, use argument matchers and answers, and mock final classes.
Getting started with pytest: tests, fixtures and parametrizeWrite and run Python tests with pytest, read its assertion output, and use fixtures, parametrize, pytest.raises and tmp_path with runnable examples.
Testing in Go with Testify: assert, require, suites, and mocksHow to use Testify's assert, require, suite, and mock packages in Go tests, with runnable examples and the gotchas that trip people up.
Unit testing in Swift with XCTest and Swift TestingSet up a test target in Xcode, write unit tests with XCTest assertions, run them, and see the same tests written with the newer Swift Testing framework.
Testing in Deno with Deno.test and @std/assertWrite and run tests in Deno with Deno.test and @std/assert: async tests, test steps, permissions, filtering, parallel runs and coverage.
Exclude live-server tests by default with pytest markers and fixturesTag tests that hit a live server with a custom pytest marker, skip them by default, and opt in with -m or an environment variable.
React UI libraries and app basics: MUI, React-Bootstrap, routing, Redux and testsAdd MUI or React-Bootstrap to a Vite React app, then wire up controlled forms, React Router, Redux Toolkit, Vitest tests and a Vercel deploy.
© 2026 David Li · Home · Blog · RSS ·Classic site · Built with Astro, Starlight and three.js · Logos:Font Awesome Free (CC BY 4.0)