ShipDesk.devblog
the blog

Testing as a solo developer: what to test and what to skip

George · 2 min read

The short answer: test the parts where a bug costs you money, data or trust: payments, permissions, anything that deletes or changes user data, and the rules your product is built on. Add one or two end-to-end checks of your main flow. Skip tests for layouts and code that changes every week. A few meaningful tests beat high coverage of trivial code.

As a solo developer you are the whole team: builder, reviewer and person on call. Tests are how you avoid re-checking everything by hand after every change. But time spent on tests is time not spent on the product, so choose well.

Test these first

  • Money. Prices, discounts, plan limits, what happens when a payment fails or is refunded.
  • Permissions. That users can only see and change their own data. One bug here can expose everyone.
  • Data changes. Anything that deletes, merges or transforms user data, and your database migrations.
  • Your core rules. The logic that makes your product what it is, such as how a schedule is calculated or how a ranking is decided.
  • Bugs you already fixed. When you fix a bug, add a test that would have caught it, so it does not come back.
your launch here, on every blog postfeatured launches show here all week$15

One or two end-to-end checks

An end-to-end test clicks through your app like a user: sign up, do the main thing, see the result. It is slower and more fragile, so keep just one or two for the path that must never break. Run them before every deploy.

What you can skip for now

  • Exact layouts and styles, which change often.
  • Simple code that only passes data along.
  • Experiments you may delete next week.
  • Third-party services themselves; test how your code handles their answers instead.

Keep tests fast and trusted

  • Fast: if tests take too long, you stop running them.
  • Reliable: a test that fails randomly gets ignored, and then real failures do too. Fix or delete flaky tests.
  • Readable: a test should describe behaviour, so the name tells you what broke.

Run them automatically

Set up a simple CI job that runs your tests, type checks and linter on every push. It catches problems even when you forget to run them yourself, and it is the safety net that makes moving fast less scary.

Tests and AI assistants

AI assistants can write tests quickly. Review them as carefully as the code: a test that only repeats what the code does proves nothing. Ask for tests that describe what a user should see, and check that they fail when the code is wrong.

The short version

  • Test money, permissions, data changes and core rules.
  • Add a test for every bug you fix.
  • Keep one or two end-to-end checks for the main flow.
  • Skip layout and throwaway code.
  • Keep tests fast, reliable and run them in CI.

see what founders are shipping