Skip to content

Commit

Permalink
deploy: 4b9e40b
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed Oct 11, 2024
1 parent cb4cfe0 commit c1f8907
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion getting-started/testing.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,9 @@ <h2><a class="header" href="#building-and-running-the-test-suite-with-swiftpm" i
use to run your tests. Because of this building tests and running them are two separate steps when
using <code>SwiftPM</code>. After your tests are built, you can use a WASI-compatible host such as
<a href="https://wasmtime.dev/">wasmtime</a> to run the test bundle:</p>
<pre><code class="language-sh">$ wasmtime .build/wasm32-unknown-wasi/debug/ExamplePackageTests.wasm
<pre><code class="language-sh">$ wasmtime --dir . .build/wasm32-unknown-wasi/debug/ExamplePackageTests.wasm
</code></pre>
<p>(<code>--dir .</code> is used to allow XCTest to find <code>Bundle.main</code> resources placed alongside the executable file.)</p>
<p>As you can see, the produced test binary starts with the name of your package followed by
<code>PackageTests.wasm</code>. It is located in the <code>.build/debug</code> subdirectory, or in the <code>.build/release</code>
subdirectory when you build in release mode.</p>
Expand Down
3 changes: 2 additions & 1 deletion print.html
Original file line number Diff line number Diff line change
Expand Up @@ -646,8 +646,9 @@ <h2><a class="header" href="#building-and-running-the-test-suite-with-swiftpm" i
use to run your tests. Because of this building tests and running them are two separate steps when
using <code>SwiftPM</code>. After your tests are built, you can use a WASI-compatible host such as
<a href="https://wasmtime.dev/">wasmtime</a> to run the test bundle:</p>
<pre><code class="language-sh">$ wasmtime .build/wasm32-unknown-wasi/debug/ExamplePackageTests.wasm
<pre><code class="language-sh">$ wasmtime --dir . .build/wasm32-unknown-wasi/debug/ExamplePackageTests.wasm
</code></pre>
<p>(<code>--dir .</code> is used to allow XCTest to find <code>Bundle.main</code> resources placed alongside the executable file.)</p>
<p>As you can see, the produced test binary starts with the name of your package followed by
<code>PackageTests.wasm</code>. It is located in the <code>.build/debug</code> subdirectory, or in the <code>.build/release</code>
subdirectory when you build in release mode.</p>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion searchindex.json

Large diffs are not rendered by default.

0 comments on commit c1f8907

Please sign in to comment.