1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-09-19 03:08:30 +03:00
git-cliff/.github/fixtures
Tiago Santos 44c93b7c70
fix(changelog): fix previous version links (#364)
* test: add more tests for previous links

* fix: fix wrong previous version

* test: fix wrong tag on test fixture

* test: add fixture for bump with keep a changelog links

* perf: avoid setting previous if already set

* style: remove unused comment

* refactor: change code style for readability

* fix: fix compilation failure

* docs: update with comments

* style: reformat code

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-12-10 16:37:00 +01:00
..
new-fixture-template feat(parser): support using regex scope values (#372) 2023-12-07 19:25:27 +01:00
test-bump-version feat(changelog)!: support templating in the footer (#369) 2023-12-05 22:23:09 +01:00
test-bumped-version feat(changelog)!: support templating in the footer (#369) 2023-12-05 22:23:09 +01:00
test-commit-footers feat(changelog)!: support templating in the footer (#369) 2023-12-05 22:23:09 +01:00
test-commit-preprocessors feat(changelog)!: support templating in the footer (#369) 2023-12-05 22:23:09 +01:00
test-custom-scope feat(changelog)!: support templating in the footer (#369) 2023-12-05 22:23:09 +01:00
test-date-order feat(changelog)!: support templating in the footer (#369) 2023-12-05 22:23:09 +01:00
test-footer-template feat(changelog)!: support templating in the footer (#369) 2023-12-05 22:23:09 +01:00
test-ignore-tags feat(changelog)!: support templating in the footer (#369) 2023-12-05 22:23:09 +01:00
test-keep-a-changelog-links fix(changelog): fix previous version links (#364) 2023-12-10 16:37:00 +01:00
test-keep-a-changelog-links-current-arg fix(changelog): fix previous version links (#364) 2023-12-10 16:37:00 +01:00
test-keep-a-changelog-links-latest-arg fix(changelog): fix previous version links (#364) 2023-12-10 16:37:00 +01:00
test-keep-a-changelog-links-no-tags fix(changelog): fix previous version links (#364) 2023-12-10 16:37:00 +01:00
test-keep-a-changelog-links-one-tag fix(changelog): fix previous version links (#364) 2023-12-10 16:37:00 +01:00
test-keep-a-changelog-links-one-tag-bump-arg fix(changelog): fix previous version links (#364) 2023-12-10 16:37:00 +01:00
test-keep-a-changelog-links-tag-arg fix(changelog): fix previous version links (#364) 2023-12-10 16:37:00 +01:00
test-keep-a-changelog-links-unreleased-arg fix(changelog): fix previous version links (#364) 2023-12-10 16:37:00 +01:00
test-latest-with-one-tag feat(changelog)!: support templating in the footer (#369) 2023-12-05 22:23:09 +01:00
test-limit-commits feat(changelog)!: support templating in the footer (#369) 2023-12-05 22:23:09 +01:00
test-regex-replace-parser feat(parser): support using regex scope values (#372) 2023-12-07 19:25:27 +01:00
test-skip-breaking-changes feat(changelog)!: support templating in the footer (#369) 2023-12-05 22:23:09 +01:00
test-split-commits feat(changelog)!: support templating in the footer (#369) 2023-12-05 22:23:09 +01:00
test-topo-order feat(changelog)!: support templating in the footer (#369) 2023-12-05 22:23:09 +01:00
test-topo-order-arg feat(changelog)!: support templating in the footer (#369) 2023-12-05 22:23:09 +01:00
README.md docs(fixtures): add instructions for adding new fixtures 2023-12-06 21:25:17 +03:00
test-fixtures-locally.sh fix(fixtures): fix test fixture failures 2022-12-16 21:08:31 +03:00

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

  1. Copy the new-fixture-template as test-<functionality>.
  2. Update the files accordingly to the function that is being tested.
  3. Run the fixture locally. (see below)
  4. 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 using command.
  5. Commit your changes.

See this commit as an example.

Running locally

To run the fixtures locally:

./test-fixtures-locally.sh <fixture_name>

See also