I have a weird question for community.
One well respected by management developer is strongly against putting data files for JUnit tests in the Maven project directory so that they are committed to the version control system (VCS).
His reasons might be formulated as:
- Project managers do not have convenient access to VCS
- 'Common practice' not in open source projects but in your heads only
I find that I have too few reasons to convince others that he is wrong.
My reasons are:
- Well respected open source projects do it (I doubt that managers will dig into GitHub)
- A newcomer to the project can by downloading the project expect all tests will be runable without manually feeding data files for tests (another weak point is that the developer's needs are not the concern of corporate management)
- The project might outlive any manager for lots of reasons, so any new manager should be able to retrieve data files from VCS. How? They should be educated in the use of the VCS.
It is the same story with 'email notification about critical config changes' vs. 'ReadMe.md or ReadMe.txt in project root in VCS'
Do you have references to proven and respected good/bad practice articles which will help me in this debate?
... Or am I really wrong in my belief?
I am aware of disadvantages of using big or complicated data files for unit tests. My case is referring to the Excel spreadsheet processor.