Posts about Testing

How an agent verifies a webpage it can never look at

mount, flush, fakeServer and mountRouting. The four helpers that let an agent verify a page the way the app uses it, from vitest, without a server or a browser.

A blank page and a green test: the bug an agent can't see

A template that cannot resolve a path renders an empty string. For a human that is a blank spot on the page. For an agent it is a green test. Here is how the…

Small temp file helper for integration tests

I’m writing some integration tests and needed to be able to create/cleanup temp files during the test. So I’ve created a small helper for that (so that the…

Why autogenerated MSTests are bad for you!

MS can generate complete test classes for you that test and access all methods and properties, no matter if they are private or public. Isn’t that awesome?…