Skip to content

Commit

Permalink
test(Runtime Integration Tests): Updated polkadotjs dep, and refreshe…
Browse files Browse the repository at this point in the history
…d types.

Signed-off-by: Dominik Roth <dominik@composable.finance>

test(Runtime Integration Tests): Removed unnecessary lines of code within oracle tests.

Signed-off-by: Dominik Roth <dominik@composable.finance>

test(Runtime Integration Tests): Start Balance Generator added, fixed generators.

Signed-off-by: Dominik Roth <dominik@composable.finance>

test(Runtime Integration Tests): Fix: Last commit did contain build failures, due to missing references.

Signed-off-by: Dominik Roth <dominik@composable.finance>

test(Runtime Integration Tests): Updated structure, docs & generated types.

Signed-off-by: Dominik Roth <dominik@composable.finance>

test(Runtime Integration Tests): Fixed slow setting, fixed docstrings.

Signed-off-by: Dominik Roth <dominik@composable.finance>

test(Runtime Integration Tests): Fixed timeout setting for oracle.reclaimStake() test.

Signed-off-by: Dominik Roth <dominik@composable.finance>

test(Runtime Integration Tests): Made crowdloan rewards tx tests being able to work multiple times on the same chain.
Upped slow time configuration for mocha.

Signed-off-by: Dominik Roth <dominik@composable.finance>

test(Runtime Integration Tests): Bonded Finance TX Checks updated & Parallelization.

Signed-off-by: Dominik Roth <dominik@composable.finance>

test(Runtime Integration Tests): W.I.P. Parallelization Integration.

Signed-off-by: Dominik Roth <dominik@composable.finance>
  • Loading branch information
Dominik Roth committed Feb 7, 2022
1 parent bb4b537 commit 2df980c
Show file tree
Hide file tree
Showing 47 changed files with 5,621 additions and 1,465 deletions.
15 changes: 9 additions & 6 deletions integration-tests/runtime-tests/.mocharc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"diff": true,
"inline-diffs": true,
"extension": ["js", "cjs", "mjs"],
"package": "./package.json",
"reporter": "mochawesome",
Expand All @@ -10,13 +11,15 @@
"html": true,
"json": true
},
"slow": 75,
"slow": 600000,
"timeout": 2000,
"retries": 0,
"retries": 3,
"ui": "bdd",
"watch-files": ["src/**/*.js", "src/**/*.ts"],
"watch-ignore": ["lib/vendor"],
"require": "src/utils/testSetup.js",
"trace-warnings": true,
"watch-files": ["test/**/*.js", "test/**/*.ts"],
"watch-ignore": ["lib/vendor", "test/**/*.d.ts"],
"require": ["mochawesome/register", "src/utils/testSetup.ts"],
"full-trace": true,
"parallel": false
"parallel": true,
"recursive": true
}
16 changes: 7 additions & 9 deletions integration-tests/runtime-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ $ npm run test
$ npm run gen
```

### If you want to check for dependency updates:
```bash
$ npm run check_dep_updates
```


## ToDo:
* Add all general test cases.
Expand All @@ -50,15 +55,8 @@ e.g.
describe('Imaginary Test', function () {
// Timeout set to 2 minutes
this.timeout(2*60*1000); // <--
it('Imaginary test part', async (done) => {
// Test Stuff...
it('Imaginary test part', async function (done) {
// Test Stuff...
});
});
```


## License
Temporary:
[GNU AGPLv3](https://choosealicense.com/licenses/agpl-3.0/)

Final License TBD.
Loading

0 comments on commit 2df980c

Please sign in to comment.