Skip to content

Commit e61adbb

Browse files
deploy: d6dbb4f
1 parent fa9bc83 commit e61adbb

File tree

6 files changed

+8
-6
lines changed

6 files changed

+8
-6
lines changed

getting-started/coverage-support.png

881 KB
Loading

getting-started/testing.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ <h2><a class="header" href="#building-and-running-the-test-suite-with-swiftpm" i
215215
subdirectory when you build in release mode.</p>
216216
<h2><a class="header" href="#code-coverage-with-swiftpm" id="code-coverage-with-swiftpm">Code coverage with <code>SwiftPM</code></a></h2>
217217
<blockquote>
218-
<p><strong>Note</strong>: Code coverage support is available only in nightly toolchains for now.</p>
218+
<p><strong>Note</strong>: Code coverage support is available only in 6.1 and later.</p>
219219
</blockquote>
220220
<p>You can also generate code coverage reports for your test suite. To do this, you need to build your
221221
test suite with the <code>--enable-code-coverage</code> and linker options <code>-Xlinker -lwasi-emulated-getpid</code>:</p>
@@ -231,6 +231,7 @@ <h2><a class="header" href="#code-coverage-with-swiftpm" id="code-coverage-with-
231231
$ llvm-cov show .build/wasm32-unknown-wasi/debug/ExamplePackageTests.wasm -instr-profile=default.profdata --format=html -o coverage
232232
$ open coverage/index.html
233233
</code></pre>
234+
<p><img src="./coverage-support.png" alt="" /></p>
234235
<h2><a class="header" href="#building-and-running-the-test-suite-with-carton" id="building-and-running-the-test-suite-with-carton">Building and running the test suite with <code>carton</code></a></h2>
235236
<p>If you use <a href="https://carton.dev"><code>carton</code></a> to develop and build your app, as described in <a href="./browser-app.html">our guide
236237
for browser apps</a>, just run <code>swift run carton test</code> in the

getting-started/vscode.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ <h2><a class="header" href="#prerequisites" id="prerequisites">Prerequisites</a>
168168
<ul>
169169
<li><a href="https://code.visualstudio.com/">Visual Studio Code</a></li>
170170
<li><a href="https://marketplace.visualstudio.com/items?itemName=sswg.swift-lang">Swift for Visual Studio Code</a></li>
171-
<li><a href="https://swift.org/install">Swift Development Snapshot</a> (<code>swift-DEVELOPMENT-SNAPSHOT-2024-09-04-a</code> or later)</li>
171+
<li><a href="https://swift.org/install">Swift OSS Toolchain</a> (6.1 or later)</li>
172172
<li><a href="./setup-snapshot.html">Swift SDK for WebAssembly</a></li>
173173
</ul>
174174
<h2><a class="header" href="#configure-your-swiftpm-package" id="configure-your-swiftpm-package">Configure your SwiftPM package</a></h2>

print.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ <h2><a class="header" href="#building-and-running-the-test-suite-with-swiftpm" i
591591
subdirectory when you build in release mode.</p>
592592
<h2><a class="header" href="#code-coverage-with-swiftpm" id="code-coverage-with-swiftpm">Code coverage with <code>SwiftPM</code></a></h2>
593593
<blockquote>
594-
<p><strong>Note</strong>: Code coverage support is available only in nightly toolchains for now.</p>
594+
<p><strong>Note</strong>: Code coverage support is available only in 6.1 and later.</p>
595595
</blockquote>
596596
<p>You can also generate code coverage reports for your test suite. To do this, you need to build your
597597
test suite with the <code>--enable-code-coverage</code> and linker options <code>-Xlinker -lwasi-emulated-getpid</code>:</p>
@@ -607,6 +607,7 @@ <h2><a class="header" href="#code-coverage-with-swiftpm" id="code-coverage-with-
607607
$ llvm-cov show .build/wasm32-unknown-wasi/debug/ExamplePackageTests.wasm -instr-profile=default.profdata --format=html -o coverage
608608
$ open coverage/index.html
609609
</code></pre>
610+
<p><img src="getting-started/./coverage-support.png" alt="" /></p>
610611
<h2><a class="header" href="#building-and-running-the-test-suite-with-carton" id="building-and-running-the-test-suite-with-carton">Building and running the test suite with <code>carton</code></a></h2>
611612
<p>If you use <a href="https://carton.dev"><code>carton</code></a> to develop and build your app, as described in <a href="getting-started/./browser-app.html">our guide
612613
for browser apps</a>, just run <code>swift run carton test</code> in the
@@ -620,7 +621,7 @@ <h2><a class="header" href="#prerequisites" id="prerequisites">Prerequisites</a>
620621
<ul>
621622
<li><a href="https://code.visualstudio.com/">Visual Studio Code</a></li>
622623
<li><a href="https://marketplace.visualstudio.com/items?itemName=sswg.swift-lang">Swift for Visual Studio Code</a></li>
623-
<li><a href="https://swift.org/install">Swift Development Snapshot</a> (<code>swift-DEVELOPMENT-SNAPSHOT-2024-09-04-a</code> or later)</li>
624+
<li><a href="https://swift.org/install">Swift OSS Toolchain</a> (6.1 or later)</li>
624625
<li><a href="getting-started/./setup-snapshot.html">Swift SDK for WebAssembly</a></li>
625626
</ul>
626627
<h2><a class="header" href="#configure-your-swiftpm-package" id="configure-your-swiftpm-package">Configure your SwiftPM package</a></h2>

searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

searchindex.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)