Skip to content

Commit

Permalink
feat(tests): sharechain unit tests (#14)
Browse files Browse the repository at this point in the history
Description
---
* Unit tests for the `sharechain` implementation
* Moved some dependency links to `tari-project/tari` 
* Disabled workflows for cucumber (integration) tests

Resolved #11 

Breaking Changes
---

- [x] None
- [ ] Requires data directory on base node to be deleted
- [ ] Requires hard fork
- [ ] Other - Please specify

<!-- Does this include a breaking change? If so, include this line as a
footer -->
<!-- BREAKING CHANGE: Description what the user should do, e.g. delete a
database, resync the chain -->
  • Loading branch information
therealdannzor authored Jul 10, 2024
1 parent fce27c7 commit f347fb5
Show file tree
Hide file tree
Showing 17 changed files with 380 additions and 242 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ jobs:
- name: cargo test compile
run: cargo test -vv --no-run --locked --all-features --release
- name: cargo test
run: cargo nextest run --all-features --release -E "not package(tari_integration_tests)" --profile ci
run: cargo nextest run --all-features --release
- name: upload artifact
uses: actions/upload-artifact@v4 # upload test results as artifact
if: always()
Expand Down
28 changes: 0 additions & 28 deletions .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,20 +94,6 @@ jobs:
- name: cargo test compile
run: cargo test --no-run --locked --all-features --release ${{ env.TARGET_BINS }}

- name: Run ${{ env.CI_PROFILE }} integration tests for binaries
if: ${{ env.CI_BINS == 'true' }}
timeout-minutes: 90
run: |
cargo test \
--test cucumber \
-v \
--all-features \
--release \
--package tari_integration_tests \
-- -t "${{ env.CI_PROFILE }} and (not @wallet-ffi) and (not @chat-ffi) and (not @broken)" \
-c 5 \
--retry 2
- name: upload artifact
uses: actions/upload-artifact@v4 # upload test results as artifact
if: always()
Expand Down Expand Up @@ -176,20 +162,6 @@ jobs:
if: ${{ env.CI_FFI == 'true' }}
run: cargo test --no-run --locked --all-features --release ${{ env.TARGET_BINS }}

- name: Run ${{ env.CI_PROFILE }} integration tests for ffi
if: ${{ env.CI_FFI == 'true' }}
timeout-minutes: 90
run: |
cargo test \
--test cucumber \
-v \
--all-features \
--release \
--package tari_integration_tests \
-- -t "(@wallet-ffi or @chat-ffi) and ${{ env.CI_PROFILE }} and (not @broken)" \
-c 1 \
--retry 2
- name: upload artifact
uses: actions/upload-artifact@v4 # upload test results as artifact
if: always()
Expand Down
Loading

0 comments on commit f347fb5

Please sign in to comment.