Skip to content

Commit

Permalink
Add warning suppression feature to the release note
Browse files Browse the repository at this point in the history
  • Loading branch information
azinneera committed Apr 30, 2024
1 parent 3598418 commit 7ab1683
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -619,20 +619,22 @@ $= future<int> result = start name();

#### Test Framework

- The test framework now supports the parallel execution of tests as an experimental feature. To activate the parallel test execution, simply use the `--parallel` flag with the `bal test` command.
- The test framework now supports the parallel execution of tests as an experimental feature. To enable parallel test execution, simply use the `--parallel` flag with the `bal test` command.

```ballerina
bal test --parallel
```bash
$ bal test --parallel
```

- APIs for mocking client resources is introduced. With these, a client resource can be stubbed to behave in a certain way, previously limited to test double.
- APIs for mocking client resource methods is introduced. With these, a client resource can be stubbed to behave in a certain way. Previously, test doubles had to be used to mock client resource methods.

```ballerina
// Sample HTTP Client call
http:Client jokes = check new ("https://api.chucknorris.io/jokes/");
json joke = check jokes->/random;
```

```ballerina
// Stub to return a specific value
jokes = test:mock(http:Client);
test:prepare(jokes)
Expand Down Expand Up @@ -805,14 +807,15 @@ To view bug fixes, see the GitHub milestone for Swan Lake Update 9 (2201.9.0) of

### New features

- Build tools can now be seamlessly integrated into the package build. This enhancement allows authors of tools managed by the `bal tool` command to expand the tool functionality, supporting direct integration into the package build. With Update 9, platform-provided tools include automation capabilities for generating OpenAPI and Persist clients directly within the package build by specifying these tools in the `Ballerina.toml` file.
- Build tools can now be seamlessly integrated into the package build. This enhancement allows authors of tools managed by the `bal tool` command to expand the tool functionality, supporting direct integration into the package build. With Update 9, platform-provided tools such as the OpenAPI and Persist tools include automation capabilities for generating clients during the package build itself by specifying these tools in the `Ballerina.toml` file.

```toml
[[tool.openapi]]
id = "generate-delivery-client"
filePath = "delivery.yml"
options.mode = "client"
```

### Improvements

- The `provided` scope has been introduced for platform dependencies to prevent a certain platform library from being included in the BALA file. This scope is particularly useful when the license of the provider restricts the redistribution of the platform library.
Expand All @@ -829,6 +832,8 @@ To view bug fixes, see the GitHub milestone for Swan Lake Update 9 (2201.9.0) of
scope = "provided"
```

- With Update 9, diagnostics issued by the dependency packages are hidden by default. These diagnostics can be printed to the console by passing the `--show-dependency-diagnostics` build option to the CLI command.

### Bug fixes

To view bug fixes, see the GitHub milestone for Swan Lake Update 9 (2201.9.0) of the repository below.
Expand Down

0 comments on commit 7ab1683

Please sign in to comment.