Skip to content

[RFC]: add support to pre-push Git hook to run package tests after changing source files #32

Open
stdlib-js/stdlib
#5548
@kgryte

Description

@kgryte

Currently, when pushing to a remote repository, we trigger a Git hook which runs pre-push. If a test or benchmark file is included in the list of changed files, we run those files. This is useful, as it verifies that changes have not led to test regressions.

However, if we change a source file (e.g., lib/main.js) without changing test files, we only run linting. This can be fine, so long as the source file contains sufficient doctests to cover most behavior. This is rarely the case, however, and it would be useful to update our pre-push hook to support running unit tests whenever the source files of a package have been updated.

Ref: https://github.com/stdlib-js/todo/issues/2157

Time estimate without AI: 3hrs
Time estimate with AI: 1-2hrs

Metadata

Metadata

Assignees

Labels

RefactorTask to refactor existing code.difficulty: 2May require some initial design or R&D, but should be straightforward to resolve and/or implement.estimate: 2-4hrsTask which should take between 2 to 4 hours.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions