Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Semver tool listener declaration unit test #36784

Closed
prathees98 opened this issue Jun 30, 2022 · 1 comment
Closed

Semver tool listener declaration unit test #36784

prathees98 opened this issue Jun 30, 2022 · 1 comment
Assignees
Labels
Area/SemverValidator Semantic versioning validator CLI tool related issues. Area/UnitTest IceBox Older issues that are not being actively worked on but may be revisited in the future. Team/DevTools Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs ) Type/Task

Comments

@prathees98
Copy link
Contributor

List down the possible positive + negative unit test cases to validate semantic CLI tool listener declaration .
Need to implement those unit test cases for patch version verification.

split test data sets of Listener declaration and keep separate test sets in a separate json file for sub levels like annotation, documentation, qualifier, type descriptor, variable name, listtener expression and advance listener declaration test cases (This is for capturing more than one changes in source code).

For an example, Remove public qualifier from a listener declaration
Old code - public listener http:Listener hello = new (8080);
New code - listener http:Listener hello = new (8080);

Here the tool should identify the change in listener declaration qualifier removal and need to suggest a appropriate version change.

Other than that tool should identify more than one change in the code.

For an example, Add public qualifiier and change the port number
Old code - listener http:Listener hello = new (8080);
New code - public listener http:Listener hello = new (8000);

Here tool should identify two changes and need to suggest correct version change according to that changes in the source code.

@NipunaRanasinghe NipunaRanasinghe added Area/UnitTest Team/DevTools Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs ) Area/SemverValidator Semantic versioning validator CLI tool related issues. labels Oct 7, 2022
@NipunaRanasinghe NipunaRanasinghe self-assigned this Oct 7, 2022
@anupama-pathirage anupama-pathirage added the IceBox Older issues that are not being actively worked on but may be revisited in the future. label Nov 21, 2024
@anupama-pathirage
Copy link
Contributor

We are closing this issue due to inactivity. If you need further assistance or have additional input, feel free to reopen it. Thank you for helping us maintain a relevant and focused issue list!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/SemverValidator Semantic versioning validator CLI tool related issues. Area/UnitTest IceBox Older issues that are not being actively worked on but may be revisited in the future. Team/DevTools Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs ) Type/Task
Projects
None yet
Development

No branches or pull requests

3 participants