Skip to content

Commit

Permalink
integration tests (#121)
Browse files Browse the repository at this point in the history
* Migrate cli test to integration test

* Move test files to temp dirs

* Migrate sandbox test

* Migrate matrix-math test

* Migrate http example test and test output

* Check hash-all endpoint, and fix poll loop calls

* Migrate TCP example

* ci: move wasmtime cli installation earlier

* Looser match for hash return value

* Move cli lint to rust test

* Migrate linting of http bindings

* Migrate tcp linting

* Move sandbox linting

* Move matrix math linting

* Fix venv invocation on windows

* Make http hash test more resilient

* Try less relative paths for running venv executables

* Manually join all path dirs

* Try conditionally looking which directory these live in

* Handle different line endings in output

* Fix line ending issue and only run tcp example on unix systems
  • Loading branch information
benbrandt authored Nov 7, 2024
1 parent 707b508 commit c54e926
Show file tree
Hide file tree
Showing 8 changed files with 747 additions and 165 deletions.
42 changes: 0 additions & 42 deletions .github/workflows/lint_examples.sh

This file was deleted.

14 changes: 4 additions & 10 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,20 +79,14 @@ jobs:
shell: bash
run: bash .github/workflows/lint.sh

- name: Test
shell: bash
run: COMPONENTIZE_PY_TEST_COUNT=20 PROPTEST_MAX_SHRINK_ITERS=0 cargo test --release

- uses: taiki-e/install-action@v2
with:
tool: wasmtime-cli

- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install wasmtime mypy
- name: Test examples
shell: bash
run: bash .github/workflows/test_examples.sh
- name: Lint examples

- name: Test
shell: bash
run: bash .github/workflows/lint_examples.sh
run: COMPONENTIZE_PY_TEST_COUNT=20 PROPTEST_MAX_SHRINK_ITERS=0 cargo test --release
37 changes: 0 additions & 37 deletions .github/workflows/test_examples.sh

This file was deleted.

99 changes: 99 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,11 @@ toml = "0.8.19"
semver = "1.0.23"

[dev-dependencies]
proptest = "1.5.0"
assert_cmd = "2.0.16"
fs_extra = "1.3.0"
hex = "0.4.3"
predicates = "3.1.2"
proptest = "1.5.0"
tempfile = "3.13.0"

[build-dependencies]
Expand Down
Loading

0 comments on commit c54e926

Please sign in to comment.