Skip to content

#testing

12 posts tagged testing. All posts

  1. .NET & C#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.
  2. RustBenchmarking Rust code with Criterion.rsSet up Criterion.rs to benchmark Rust code on stable: a first benchmark, parameterised inputs, throughput, baselines and HTML reports.
  3. Everything elseJUnit 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.
  4. Mobile & AndroidEspresso 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.
  5. Mobile & AndroidSwift 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.
  6. Mobile & AndroidMockito 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.
  7. PythonGetting 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.
  8. GoTesting 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.
  9. Mobile & AndroidUnit 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.
  10. JavaScript & webTesting 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.
  11. PythonExclude 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.
  12. JavaScript & webReact 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)