Skip to content

Commit

Permalink
Merge pull request #11 from G5andeepD/test-docs-corrections
Browse files Browse the repository at this point in the history
Test Documentation Correction
  • Loading branch information
NipunaRanasinghe authored Aug 16, 2024
2 parents 57e16cc + ce8fab3 commit 9f87ca4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ballerina/tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ You can run the tests in either of these environments, and each has its own comp

## Running Tests in the Mock Server

To execute the tests on the mock server, ensure that the `isLiveServer` environment variable is either set to `false` or left unset before initiating the tests.
To execute the tests on the mock server, ensure that the `IS_LIVE_SERVER` environment variable is either set to `false` or left unset before initiating the tests.

This environment variable can be configured within the `Config.toml` file located in the `tests` directory or specified as an environment variable.

Expand All @@ -38,13 +38,13 @@ Alternatively, you can set the environment variable directly.
For Linux or macOS:

```bash
export isLiveServer=false
export IS_LIVE_SERVER=false
```

For Windows:

```bash
setx isLiveServer false
setx IS_LIVE_SERVER false
```

Then, run the following command to execute the tests:
Expand All @@ -71,15 +71,15 @@ Alternatively, you can set your authentication credentials as environment variab
For Linux or macOS:

```bash
export isLiveServer=true
export apiKey="<your-openAI-api-key>"
export IS_LIVE_SERVER=true
export OPENAI_API_KEY="<your-openAI-api-key>"
```

For Windows:

```bash
setx isLiveServer true
setx apiKey <your-openAI-api-key>
setx IS_LIVE_SERVER true
setx OPENAI_API_KEY <your-openAI-api-key>
```

Then, run the following command to execute the tests:
Expand Down

0 comments on commit 9f87ca4

Please sign in to comment.