Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundle v0.10.0 #157

Merged
merged 60 commits into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
b6ff821
chore: add jest setup to coverage all files (#101)
Brunonascdev Mar 26, 2024
e78148d
refactor: fix circular import
fazzatti Mar 26, 2024
e9497cb
test: contract engine initial structure
fazzatti Mar 26, 2024
1d20ca7
Merge pull request #102 from CheesecakeLabs/unit-test
Brunonascdev Mar 26, 2024
a4a6bde
Contract Engine unit tests (#103)
fazzatti Mar 28, 2024
f66a40c
refactor: contract engine errors (#104)
fazzatti Mar 28, 2024
47ccf16
Update docs and minor adjustments to jsdocs (#105)
fazzatti Mar 28, 2024
c30ab86
packaging: bump version to 0.7.0 (#108)
fazzatti Mar 28, 2024
81b25eb
test: add build transaction unit tests
Brunonascdev Apr 1, 2024
1a17047
Merge branch 'develop' of github.com:CheesecakeLabs/stellar-plus into…
Brunonascdev Apr 1, 2024
961ad28
chore: merge with develop
Brunonascdev Apr 1, 2024
7249e02
test: add build transaction failure tests
Brunonascdev Apr 1, 2024
44561cb
refactor: make networkConfig variable private
Brunonascdev Apr 1, 2024
ec59df0
Merge pull request #110 from CheesecakeLabs/test/build-transaction-un…
Brunonascdev Apr 1, 2024
d8924db
test: add unit test for fee bump pipeline (#113)
Brunonascdev Apr 1, 2024
88a8b0a
test: add unit tests for classic signature requirements pipeline (#115)
fazzatti Apr 1, 2024
619b65f
Add unit tests for simulate transaction pipeline (#117)
fazzatti Apr 2, 2024
9712847
Add unit tests for classic transaction pipeline (#118)
fazzatti Apr 2, 2024
e2d382a
test: add unit tests for soroban transaction pipeline (#119)
fazzatti Apr 2, 2024
0da0a45
test: add unit test for sign transaction pipeline
Brunonascdev Apr 2, 2024
85c2044
Merge branch 'develop' of github.com:CheesecakeLabs/stellar-plus into…
Brunonascdev Apr 2, 2024
13e354a
Merge pull request #120 from CheesecakeLabs/test/sign-transaction-pip…
Brunonascdev Apr 2, 2024
72d7b93
test: add unit test for submit transaction pipeline
Brunonascdev Apr 3, 2024
ef9c214
Merge pull request #122 from CheesecakeLabs/test/submit-transaction-p…
Brunonascdev Apr 3, 2024
0d57031
Add unit tests soroban auth (#123)
fazzatti Apr 3, 2024
882cd85
Complete unit test coverage for account handlers (#125)
fazzatti Apr 5, 2024
10ace5d
Create test-coverage.yml action (#126)
fazzatti Apr 5, 2024
89405b9
Add unit test for base account handler (#127)
fazzatti Apr 5, 2024
4ab013b
Add unit test for soroban get transaction pipeline (#124)
fazzatti Apr 5, 2024
228a50f
Add unit tests for the classic asset handler (#128)
fazzatti Apr 5, 2024
4823037
feat: remove issuer requirement for classic assets (#129)
fazzatti Apr 8, 2024
210cbd7
test: add unit test to soroban token handler (#131)
fazzatti Apr 24, 2024
cf4b2e9
feat: remove helper classes for account (#132)
fazzatti Apr 24, 2024
c008ca6
Standardize default network configs and custom (#133)
fazzatti Apr 25, 2024
20abb09
packaging: bump version to v0.8.0
fazzatti Apr 25, 2024
158165a
Merge branch 'main' into develop
fazzatti Apr 25, 2024
5bf176a
Fix merge issues (#137)
fazzatti Apr 25, 2024
9eff855
Update stellar sdk (#139)
fazzatti Apr 30, 2024
39af9af
packaging: bump version to 0.8.1
fazzatti Apr 30, 2024
2fb5cee
Merge branch 'main' into develop
fazzatti Apr 30, 2024
2f367fa
Minor fixes (#141)
fazzatti May 1, 2024
75d6f4b
Merge branch 'main' into develop
fazzatti May 1, 2024
364ca4b
Contract engine improvements (#144)
fazzatti May 7, 2024
25c35aa
chore: bump version to 0.8.3
fazzatti May 7, 2024
aecd297
Merge branch 'main' into develop
fazzatti May 7, 2024
b6b97bb
fix: soroban auth simulation fails if partial auth entries are present
fazzatti May 10, 2024
703c935
chore: bump version to 0.8.4
fazzatti May 10, 2024
6d5ed86
Merge branch 'main' into develop
fazzatti May 10, 2024
3385918
feat: Implement verbose output for transactions pipelines (#147)
fazzatti May 16, 2024
91cc0f8
Merge branch 'main' into develop
fazzatti May 16, 2024
3d275ee
build(deps-dev): bump braces from 3.0.2 to 3.0.3
dependabot[bot] Jun 21, 2024
b230b5d
Merge pull request #149 from CheesecakeLabs/dependabot/npm_and_yarn/b…
Brunonascdev Jun 30, 2024
4729c52
Feat integration tests (#150)
fazzatti Jul 1, 2024
e898739
build(deps-dev): bump axios from 0.21.4 to 1.7.2
dependabot[bot] Jul 1, 2024
8739884
Feat: unit conversion (#153)
fazzatti Jul 1, 2024
9393704
Merge branch 'develop' into dependabot/npm_and_yarn/axios-1.7.2
Brunonascdev Jul 1, 2024
0770e9a
Merge pull request #154 from CheesecakeLabs/dependabot/npm_and_yarn/a…
Brunonascdev Jul 2, 2024
9474d54
Feat verify signature (#156)
fazzatti Jul 2, 2024
57dae33
Merge branch 'main' into develop
fazzatti Jul 9, 2024
2ca3fc3
chore: bump version to v0.10.0
fazzatti Jul 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 36 additions & 36 deletions .github/workflows/test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,45 +7,45 @@ on:
workflow_dispatch:
workflow_call:
push:
branches: [ "develop", "main" ]
branches: ['develop', 'main']
pull_request:
branches: [ "develop", "main" ]
branches: ['develop', 'main']

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
cache-dependency-path: './package-lock.json'
- name: Install Dependencies
run: npm ci
- name: Run tests with coverage
run: npm test

- name: Code Coverage Report
uses: irongut/[email protected]
with:
filename: ./src/coverage/cobertura-coverage.xml
fail_below_min: false
format: markdown
hide_branch_rate: false
hide_complexity: true
indicators: true
output: both
thresholds: '60 80'

- name: Add Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@v2
if: github.event_name == 'pull_request'
with:
recreate: true
path: code-coverage-results.md
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
cache-dependency-path: './package-lock.json'

- name: Install Dependencies
run: npm ci

- name: Run tests with coverage
run: npm test

- name: Code Coverage Report
uses: irongut/[email protected]
with:
filename: ./src/coverage/all/cobertura-coverage.xml
fail_below_min: false
format: markdown
hide_branch_rate: false
hide_complexity: true
indicators: true
output: both
thresholds: '60 80'

- name: Add Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@v2
if: github.event_name == 'pull_request'
with:
recreate: true
path: code-coverage-results.md
45 changes: 45 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,48 @@ For the full documentation, refer to our [Gitbook Documentation](https://cheesec
- [Code of Conduct](https://github.com/cheesecakelabs/stellar-plus/blob/main/CODE_OF_CONDUCT.md)
- [Contributing Guidelines](https://github.com/cheesecakelabs/stellar-plus/blob/main/CONTRIBUTING.md)
- [MIT License](https://github.com/cheesecakelabs/stellar-plus/blob/main/LICENSE)

## Testing

Quality being a core pillar of Stellar Plus, to ensure a high level of confiability we aim at keep a high level of test coverage throughout the whole library. All tests written currently fall within one of the following categories:

- Unit tests for specific localized behaviour
- Integration tests to cover whole features and ledger integration

To run all tests locally, one can run the following command:

```bash
npm run test
```

This will trigger both the suit of unit and integrations tests, outputting their combined coverage to the directory `./src/coverage/all`. This is the metric used as reference when merging implementation to the main branch and releasing new versions.

### Unit Tests

As the unit tests aim at enforcing locallized behaviour, they are implemented within their reference features directory and can be identified by the file name pattern `*.unit.test.ts`.

To execute only the unit tests locally, one can run the command:

```bash
npm run test-unit
```

This will trigger the suit of unit tests only, outputting its coverage to the directory `./src/coverage/unit`.

### Integration Tests

As the integration tests aim at guaranteeing a great level of confidence about whole feature's behaviour, by default all integration tests verify complete workable use cases.

Testing functionalities against a DLT poses a challenge as public testnets can introduce external interference or be out of reach at specific time. Therefore, all integration tests in Stellar Plus, leverage a `Stellar Test Ledger` feature, originally developed by Cheesecakelabs for the open source project [Hyperledger Cacti](https://github.com/hyperledger/cacti).

The Stellar Test Ledger can be found within the `@hyperledger/cactus-test-tooling` package or directly available through Stellar Plus as well. It pulls up and manages the Stellar Quickstart Docker Image to start a pristine version of the Stellar ledger and all its services without any external interference.

Each integration use case is tested against a pristine ledger with no existing history to ensure maximum isolation of the feature while still verifying agains a real production-like environment.

To execute only the integration tests locally, one can run the command:

```bash
npm run test-integration
```

This will trigger the suit of integration tests only, outputting its coverage to the directory `./src/coverage/integration`.
Loading
Loading