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

[Improvement]: Change the test file name created with bal add <module-name> #42262

Closed
Dilhasha opened this issue Mar 4, 2024 · 1 comment · Fixed by #42422
Closed

[Improvement]: Change the test file name created with bal add <module-name> #42262

Dilhasha opened this issue Mar 4, 2024 · 1 comment · Fixed by #42422
Assignees
Labels
Area/TestFramework Team/DevTools Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs ) Type/Improvement

Comments

@Dilhasha
Copy link
Contributor

Dilhasha commented Mar 4, 2024

Description

When we do bal add <module-name>,
in the generated tests the test file name is set to lib_test.bal. Shall we change it to <module-name>_test.bal?

Describe your problem(s)

No response

Describe your solution(s)

No response

Related area

-> Test Framework

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

@ballerina-bot ballerina-bot added the Team/DevTools Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs ) label Mar 4, 2024
@gayaldassanayake gayaldassanayake self-assigned this Mar 27, 2024
@gayaldassanayake
Copy link
Contributor

The current approach is to set the name depending on the template. For add command lib and service templates are allowed.

  1. lib (default) - creates tests/lib_test.bal
  2. service - creates tests/service_test.bal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/TestFramework Team/DevTools Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs ) Type/Improvement
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants