Replies: 1 comment
-
I suppose I drew the arrow backwards from |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the documentation, it says:
It makes perfect sense since lib is the smallest unit in nx world.
Does that mean it recommends to separate tests from the lib as another lib? I would imagine most users, including us, colocate tests with the real code in the same lib. If a test imports a module, which has not been imported by the lib itself, it would trigger unnecessary tests. The following demo graph shows the idea.
If a library is instead considered a lib and a lib-tests (on the right side of the demo graph), change graph behavior is clearly desirable. Since this could be an issue that many users encounter, wondering if there is already a recommended pattern.
cc: @vsavkin @cdaringe
Beta Was this translation helpful? Give feedback.
All reactions