ballerina-platform / ballerina-lang

The Ballerina Programming Language

Home Page:https://ballerina.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[New Feature]: Run tests with different configurations

jsdjayanga opened this issue · comments

Description

I want to test the behavior of a function with different configuration values.

Describe your problem(s)

Say, there is a configuration called "isMaintenanceMode" and there is a resource function that returns different responses and codes based on the value of "isMaintenanceMode".
Currently, I can test only with the default value.

Describe your solution(s)

A mechanism to change the configuration values on the run or restart the test server with different values for tests or test groups.

Related area

-> Test Framework

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response