1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-09-11 06:55:38 +03:00
git-cliff/.github/fixtures
Orhun Parmaksız 9eb3d65945
feat(config): support detecting config from project manifest (#571)
* feat(config): support detecting config from project manifest

* refactor: apply clippy suggestions

* test(fixture): add fixture for configuring from Cargo.toml
2024-03-23 15:31:58 +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(release): make the bump version rules configurable (#530) 2024-03-11 14:08:07 +01:00
test-bump-version-keep-zerover feat(release): make the bump version rules configurable (#530) 2024-03-11 14:08:07 +01:00
test-bumped-version test(fixtures): update the bumped value output to add prefix 2023-12-26 04:51:54 +03: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-configure-from-cargo-toml feat(config): support detecting config from project manifest (#571) 2024-03-23 15:31:58 +01:00
test-custom-scope feat(changelog)!: support templating in the footer (#369) 2023-12-05 22:23:09 +01:00
test-custom-tag-pattern feat(args): add --tag-pattern argument (#526) 2024-03-01 23:09:15 +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-github-integration feat(github)!: support integration with GitHub repos (#363) 2023-12-26 20:52:31 +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 test(fixtures): update the bumped value output to add prefix 2023-12-26 04:51:54 +03: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-no-exec feat(args): add --no-exec flag for skipping command execution (#458) 2024-01-20 23:33:49 +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-skip-commits feat(changelog): improve skipping via .cliffignore and --skip-commit (#413) 2023-12-31 15:34:01 +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 chore(fixtures): enable verbose logging for output 2024-03-02 21:41:49 +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