You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: terragrunt/modules/crates-io/compute-static/README.md
+13-3Lines changed: 13 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,20 +19,30 @@ fastly compute build
19
19
20
20
## Testing
21
21
22
-
Testing requires [cargo-nextest](https://nexte.st/docs/installation/pre-built-binaries/), as specified in the [Fastly documentation](https://www.fastly.com/documentation/guides/compute/developer-guides/rust/). You can install it from source with binstall:
22
+
Testing requires [cargo-nextest](https://nexte.st/docs/installation/pre-built-binaries/), as specified in
23
+
the [Fastly documentation](https://www.fastly.com/documentation/guides/compute/developer-guides/rust/). You can install
24
+
it from source with binstall:
25
+
23
26
```shell
24
27
cargo install cargo-binstall
25
28
cargo binstall cargo-nextest --secure
26
29
```
27
30
28
31
Then, install [Viceroy](https://github.com/fastly/Viceroy) to run the edge function locally:
32
+
29
33
```shell
30
34
cargo install --locked viceroy
31
35
```
32
36
33
-
Now you can run the tests with:
37
+
Due to the fact Viceroy does not allow easily mocking HTTP requests being sent (
38
+
see [issue](https://github.com/fastly/Viceroy/issues/442)), some tests use a small Python HTTP
39
+
server to work.
40
+
For this reason, a wrapper bash script is provided that runs `cargo nextest run` with the test server active in
0 commit comments