TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Test names should be ACE (Action, Condition, Expectation)

1 pointsby gus_leonelalmost 2 years ago

1 comment

wryoakalmost 2 years ago
Test names should reference the ticket for the bug or requirement they address, eg ABC-123 Although very few languages will allow names with hyphens, which is why I store all my tests in a dictionary with their ticket ID as the key and a list of functions as their value, and I reduce it for test runs. I guess if your language doesn’t offer first class functions you should just not bother with testing, or even coding for that matter.