Split the unit tests into a separate project #18
Replies: 2 comments 5 replies
-
Hi @PatrickDanino, I'm sorry but I'm not sure I understand the concern here. You are concerned about these tests in the library? Those tests are an internal detail of the library, and shouldn't be a hindrance to anyone using Perception. Can you explain a bit more about the problem you are running into? |
Beta Was this translation helpful? Give feedback.
-
This framework does get used in a Debug build, which we of course need to do for our own testing. Here's one example in
I also had to comment various test-specific functions for our debug builds:
From our point of view, the technical details of why a framework like this is being used don't matter if the framework is a dependency. As soon as it becomes a dependency, we have to review it, track it and it just becomes additional overhead. This is in part for legal and compliance reasons. |
Beta Was this translation helpful? Give feedback.
-
I don’t know if there’s a need for all the people using this framework to also need to run unit tests for it.
More specifically, the number of things you need to import in order to run these tests is considerable. In a large scale project, every import we do has to be done carefully and we don’t normally import test frameworks.
There is also a bit of code that tries to report unit test errors while in debug mode, which I would reconsider despite whatever benefits come with doing that.
Beta Was this translation helpful? Give feedback.
All reactions