[TT-11746] Add linter for regression test names#6191
Conversation
|
PR Description updated to latest commit (97ab0f0) |
|
API Changes no api changes detected |
PR Review
Code feedback:
✨ Review tool usage guide:Overview: The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on any PR.
See the review usage page for a comprehensive guide on using this tool. |
PR Code Suggestions
✨ Improve tool usage guide:Overview:
See the improve usage page for a comprehensive guide on using this tool. |
💥 CI tests failed 🙈git-stateall okPlease look at the run or in the Checks tab. |
|
|
/release to release-5-lts |
|
Working on it! Note that it can take a few minutes. |
## **User description** Tests only change, adds linting for regression test functions names. Imports docker/services for test env setup. Intended for: master, release-5.3, release-5-lts. https://tyktech.atlassian.net/browse/TT-11746 ___ ## **Type** tests, enhancement ___ ## **Description** - Introduced a new linting task (`test:lint`) to enforce naming conventions for regression tests. - The linting task checks if test names follow the specified regex pattern, aiming to prevent naming violations. - This linting step is integrated into the test workflow, ensuring that tests with improper names are flagged before execution. ___ ## **Changes walkthrough** <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><table> <tr> <td> <details> <summary><strong>Taskfile.yml</strong><dd><code>Add Linting Task for Regression Test Names</code> </dd></summary> <hr> tests/regression/Taskfile.yml <li>Added a new task <code>test:lint</code> for linting test names.<br> <li> The <code>test:lint</code> task checks for naming violations against a regex <br>pattern and exits with an error if violations are found.<br> <li> Integrated <code>test:lint</code> task into the test workflow before running tests. </details> </td> <td><a href="https://github.com/TykTechnologies/tyk/pull/6191/files#diff-32da89368e3551ec281e80af08b54c3410bcea3257e75af6bac113a51d822a55">+11/-0</a> </td> </tr> </table></td></tr></tr></tbody></table> ___ > ✨ **PR-Agent usage**: >Comment `/help` on the PR to get a list of all available PR-Agent tools and their descriptions --------- Co-authored-by: Tit Petric <[email protected]> (cherry picked from commit 871158a)
|
/release to release-5.3 |
|
@titpetric Succesfully merged PR |
|
Working on it! Note that it can take a few minutes. |
## **User description** Tests only change, adds linting for regression test functions names. Imports docker/services for test env setup. Intended for: master, release-5.3, release-5-lts. https://tyktech.atlassian.net/browse/TT-11746 ___ ## **Type** tests, enhancement ___ ## **Description** - Introduced a new linting task (`test:lint`) to enforce naming conventions for regression tests. - The linting task checks if test names follow the specified regex pattern, aiming to prevent naming violations. - This linting step is integrated into the test workflow, ensuring that tests with improper names are flagged before execution. ___ ## **Changes walkthrough** <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><table> <tr> <td> <details> <summary><strong>Taskfile.yml</strong><dd><code>Add Linting Task for Regression Test Names</code> </dd></summary> <hr> tests/regression/Taskfile.yml <li>Added a new task <code>test:lint</code> for linting test names.<br> <li> The <code>test:lint</code> task checks for naming violations against a regex <br>pattern and exits with an error if violations are found.<br> <li> Integrated <code>test:lint</code> task into the test workflow before running tests. </details> </td> <td><a href="https://github.com/TykTechnologies/tyk/pull/6191/files#diff-32da89368e3551ec281e80af08b54c3410bcea3257e75af6bac113a51d822a55">+11/-0</a> </td> </tr> </table></td></tr></tr></tbody></table> ___ > ✨ **PR-Agent usage**: >Comment `/help` on the PR to get a list of all available PR-Agent tools and their descriptions --------- Co-authored-by: Tit Petric <[email protected]> (cherry picked from commit 871158a)
|
@titpetric Succesfully merged PR |
…es (#6191) [TT-11746] Add linter for regression test names (#6191) ## **User description** Tests only change, adds linting for regression test functions names. Imports docker/services for test env setup. Intended for: master, release-5.3, release-5-lts. https://tyktech.atlassian.net/browse/TT-11746 ___ ## **Type** tests, enhancement ___ ## **Description** - Introduced a new linting task (`test:lint`) to enforce naming conventions for regression tests. - The linting task checks if test names follow the specified regex pattern, aiming to prevent naming violations. - This linting step is integrated into the test workflow, ensuring that tests with improper names are flagged before execution. ___ ## **Changes walkthrough** <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><table> <tr> <td> <details> <summary><strong>Taskfile.yml</strong><dd><code>Add Linting Task for Regression Test Names</code> </dd></summary> <hr> tests/regression/Taskfile.yml <li>Added a new task <code>test:lint</code> for linting test names.<br> <li> The <code>test:lint</code> task checks for naming violations against a regex <br>pattern and exits with an error if violations are found.<br> <li> Integrated <code>test:lint</code> task into the test workflow before running tests. </details> </td> <td><a href="https://github.com/TykTechnologies/tyk/pull/6191/files#diff-32da89368e3551ec281e80af08b54c3410bcea3257e75af6bac113a51d822a55">+11/-0</a> </td> </tr> </table></td></tr></tr></tbody></table> ___ > ✨ **PR-Agent usage**: >Comment `/help` on the PR to get a list of all available PR-Agent tools and their descriptions --------- Co-authored-by: Tit Petric <[email protected]>
…ames (#6191) [TT-11746] Add linter for regression test names (#6191) ## **User description** Tests only change, adds linting for regression test functions names. Imports docker/services for test env setup. Intended for: master, release-5.3, release-5-lts. https://tyktech.atlassian.net/browse/TT-11746 ___ ## **Type** tests, enhancement ___ ## **Description** - Introduced a new linting task (`test:lint`) to enforce naming conventions for regression tests. - The linting task checks if test names follow the specified regex pattern, aiming to prevent naming violations. - This linting step is integrated into the test workflow, ensuring that tests with improper names are flagged before execution. ___ ## **Changes walkthrough** <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><table> <tr> <td> <details> <summary><strong>Taskfile.yml</strong><dd><code>Add Linting Task for Regression Test Names</code> </dd></summary> <hr> tests/regression/Taskfile.yml <li>Added a new task <code>test:lint</code> for linting test names.<br> <li> The <code>test:lint</code> task checks for naming violations against a regex <br>pattern and exits with an error if violations are found.<br> <li> Integrated <code>test:lint</code> task into the test workflow before running tests. </details> </td> <td><a href="https://github.com/TykTechnologies/tyk/pull/6191/files#diff-32da89368e3551ec281e80af08b54c3410bcea3257e75af6bac113a51d822a55">+11/-0</a> </td> </tr> </table></td></tr></tr></tbody></table> ___ > ✨ **PR-Agent usage**: >Comment `/help` on the PR to get a list of all available PR-Agent tools and their descriptions --------- Co-authored-by: Tit Petric <[email protected]>




User description
Tests only change, adds linting for regression test functions names. Imports docker/services for test env setup.
Intended for: master, release-5.3, release-5-lts.
https://tyktech.atlassian.net/browse/TT-11746
Type
tests, enhancement
Description
test:lint) to enforce naming conventions for regression tests.Changes walkthrough
Taskfile.yml
Add Linting Task for Regression Test Namestests/regression/Taskfile.yml
test:lintfor linting test names.test:linttask checks for naming violations against a regexpattern and exits with an error if violations are found.
test:linttask into the test workflow before running tests.