Semver tool listener declaration unit test #36784
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
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.
The text was updated successfully, but these errors were encountered: