How to layout test-files and -folders in a project using multiple import packages? #10591
Unanswered
buhtz
asked this question in
Show and tell
Replies: 1 comment 1 reply
-
Variant D seems the best option, for the reasons you just gave. It also sticks better with the "flat is better than nested" practice. There's an alternative pattern (that IMHO is particularly good for large code-bases) where each folder has its own
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I want to ask you for your experience based opinion.
I have a Distribution Package (named
bitdemo
) with two Import Packages (namedbitcli
andbitgui
) inside. The project do use the src-Layout. The linked repo is just a demonstrator.My question is about how should I organize/layout the test files.
This is not only because of clearness but about separate unit- and integration-tests because IMHO the latter should not count for coverage calculation.
Here are some variants. Which one would you prefer or would you propose a different one?
Variant A
Variant B
Variant C
Variant D
The unit-tests related to
bitcli
don't needbitgui
.But
bitgui
do need sometimesbitcli
because the GUI do use functionality from the its command line version with its basic functionality.And I also assume that most of the integration tests to involve
bitcli
andbitgui
at the same time. So on the level of integration-tests a separation doesn't make much sense.Beta Was this translation helpful? Give feedback.
All reactions