You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As evidenced here: #208 (comment)
Maybe it can be a good idea to draft a document where list the testing principles to follow in the codebase, similar to the architecture-principles.md.
Maybe we should start to list here some and discuss about.
Every component containing logic (like services, handlers, controllers...) should be covered by at least one unit test.
Do not use mocks for data objects, as they can be easily instantiated using their builders/constructors.
Only public methods should be called by a test.
Tests that have to do with external systems should be marked with the @IntegrationTest annotation.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
As evidenced here: #208 (comment)
Maybe it can be a good idea to draft a document where list the testing principles to follow in the codebase, similar to the
architecture-principles.md
.Maybe we should start to list here some and discuss about.
@IntegrationTest
annotation.Beta Was this translation helpful? Give feedback.
All reactions