Hi there,
what is your personal best practice for organising allium files?
Do you keep them in a separate folder like spec/ or do you have one allium file per code file or something else entirely?
Hi there,
what is your personal best practice for organising allium files?
Do you keep them in a separate folder like spec/ or do you have one allium file per code file or something else entirely?
Hi @tburny!
All my specs end up in a specs directory but beyond that I don’t tend to think much about it. I lean towards thinking of the specs as the agent’s responsibility to manage and I rarely read them.
I observe that I tend to get one spec per logical component of my system, which averages about 1-7 specs per repository. Occasionally there’s an outlier though: the Apollo-11 guidance computer yielded 18 spec files.
What’s been your strategy?
I used to have a spec folder, however there is a tradeoff. A dedicated specs/ tree keeps the specs cohesive and decoupled from the implementation.
A 1:1 mapping between allium and source code helps to see the connection between specification and implementation. The cost is that similar to how most people write unit tests, there is now a strong coupling between specification and implementation files, which makes it harder (more expensive) to refactor and you get more files.