mirror of
https://github.com/orhun/git-cliff.git
synced 2024-09-11 06:55:38 +03:00
* feat(config): support detecting config from project manifest * refactor: apply clippy suggestions * test(fixture): add fixture for configuring from Cargo.toml |
||
---|---|---|
.. | ||
new-fixture-template | ||
test-bump-version | ||
test-bump-version-keep-zerover | ||
test-bumped-version | ||
test-commit-footers | ||
test-commit-preprocessors | ||
test-configure-from-cargo-toml | ||
test-custom-scope | ||
test-custom-tag-pattern | ||
test-date-order | ||
test-footer-template | ||
test-github-integration | ||
test-ignore-tags | ||
test-keep-a-changelog-links | ||
test-keep-a-changelog-links-current-arg | ||
test-keep-a-changelog-links-latest-arg | ||
test-keep-a-changelog-links-no-tags | ||
test-keep-a-changelog-links-one-tag | ||
test-keep-a-changelog-links-one-tag-bump-arg | ||
test-keep-a-changelog-links-tag-arg | ||
test-keep-a-changelog-links-unreleased-arg | ||
test-latest-with-one-tag | ||
test-limit-commits | ||
test-no-exec | ||
test-regex-replace-parser | ||
test-skip-breaking-changes | ||
test-skip-commits | ||
test-split-commits | ||
test-topo-order | ||
test-topo-order-arg | ||
README.md | ||
test-fixtures-locally.sh |
Fixtures
Test fixtures are a way of testing the git-cliff
's functionality against a configuration file (cliff.toml
) and asserting the output (expected.md
).
They are being run as a part of the GitHub Actions and the workflow file can be viewed here.
Adding new fixtures
- Copy the
new-fixture-template
astest-<functionality>
. - Update the files accordingly to the function that is being tested.
- Run the fixture locally. (see below)
- Add the fixture to
test-fixtures.yml
matrix.- If you need to specify custom arguments to
git-cliff
for the fixture test, you can do it here with usingcommand
.
- If you need to specify custom arguments to
- Commit your changes.
See this commit as an example.
Running locally
To run the fixtures locally:
./test-fixtures-locally.sh <fixture_name>