Skip to content

Commit

Permalink
feat: bootstrap integration tests (#36)
Browse files Browse the repository at this point in the history
This PR bootstraps integration tests for this repository using PocketIC.
Note that the test scenarios in this PR are very basic and test coverage
must be improved in a follow up PR.
  • Loading branch information
mraszyk authored Nov 21, 2023
1 parent a9533fd commit 0ed7a30
Show file tree
Hide file tree
Showing 18 changed files with 1,191 additions and 13 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: 'Checkout'
uses: actions/checkout@v3
- name: 'Test cargo crates'
run: cargo test --locked
run: cargo test --locked --workspace --exclude integration_tests
test-node:
name: 'test-node:required'
runs-on: ubuntu-latest
Expand All @@ -46,3 +46,19 @@ jobs:
- name: 'Check code'
run: |
pnpm test -- --run
integration-tests:
name: 'integration-tests:required'
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v3
- name: 'Setup Rust'
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: 'Setup WASM target for Rust'
run: rustup target add wasm32-unknown-unknown
- name: Run integration tests
run: ./scripts/run-integration-tests.sh
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,6 @@ dist
coverage
.dfx
canister_ids.json
canisters/integration_tests/pocket-ic
ic-wasm
wasms/*.wasm.gz
Loading

0 comments on commit 0ed7a30

Please sign in to comment.