Hacker News new | ask | show | jobs
by ozim 6 days ago
I would like "non-functional testing" to be called "cross-functional testing".
1 comments

I'm not 100% certain, but I think "functional" here is used in more of the math sense: given a specific input, a specific output is obtained deterministically. A performance test doesn't meet this criterion, for example, because the run time of a program (or whatever) depends on a lot of factors, and any set of runs of the same test are most likely to generate distinct results.
I personally always found the distinction... confusing, but I was curious about the earliest use and whether your view matches the history.

It seems it starts with "non-functional requirements" in 1980 in Yeh/Zave's paper "Specifying Software Requirements". I can't find a public variant of that paper, and other papers citing it have things like

> ...has been centered on notations and techniques for defining and providing the functions a software system has to perform.

This is strictly — in my interpretation — not the meaning you refer to of mathematical functional behavior. And I've seen people mostly not use it in the mathematical sense, even if that's the only way to make it "clear".

But to me, both interpretations are useless: sometimes, performance will be a core property of the system that you can deterministically measure (eg. non-variable performance is a requirement for proper functioning of security systems to prevent timing attacks; you can track many proxies that directly affect performance, like the number of emitted queries when you are preventing N+1 query explosion etc.); and some functions in a system will be non-deterministic (think true randomness).

It's basically two buckets of "features" drawn up to some arbitrary lines. Why is that useful when which requirements and tests matter is always dependent on the actual use-case being covered?

Technically correct - totally wrong when explaining to non tech, non math people.
Hmm, in my circles "non-functional" in this context (as in NFRs or "non-functional requirements") refers to things that don't relate strictly to the core functionality of a given feature or system. Performance (as in user-perceived latency) falls into this bucket (though I've always felt that performance is not just a feature, but the most important feature /digression).
People bring up things which are pretty much always actual features of a product: performance, usability, accessibility, cybersecurity... I do not see how this distinction is useful anywhere?

If we are trying to differentiate between easy-to-test and hard-to-test, it's a self-fulfilling prophecy — if we decide we want to test "non-functional" features, we can make it easy by employing a proper testable architecture when building the system.