Update .gitattributes to excluded tests from built releases
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Low
|
Andrew Nicols |
Bug Description
When generating releases, we currently do not include our tests (e.g. selenium).
It's been proposed that we allow for unit tests to be located within each component (e.g. /blocks/XXX/tests/) to allow for easier maintenance of that module.
The files are excluded from release tarballs using a .gitattributes file.
The change I'm submitting is a little heavy-handed and will prohibit the use of a directory or file named tests anywhere within mahara. If accepted, we should add a warning on push (e.g. in the Makefile) to remind that this directory is always excluded.
An alternative would be to modify the release script to find all occurrences of tests/phpunit and place these into a new .gitattributes file, and then to use the --worktree-
Changed in mahara: | |
status: | In Progress → Fix Released |
milestone: | 1.5.0 → none |
Posted the first option in https:/ /reviews. mahara. org/898