diff --git a/.github/workflows/integration-tests.yaml b/.github/workflows/integration-tests.yaml
index 3b444e007..9e50653bc 100644
--- a/.github/workflows/integration-tests.yaml
+++ b/.github/workflows/integration-tests.yaml
@@ -19,7 +19,14 @@ jobs:
node-version: 18
- name: Run Tests
+ working-directory: integration_tests
run: |
- cd integration_tests
yarn install
yarn test
+
+ - name: Publish Test Results
+ uses: EnricoMi/publish-unit-test-result-action@v2
+ if: always()
+ with:
+ files: |
+ integration_tests/results.json
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 12d6d63b0..c6dd4f201 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -8,8 +8,10 @@
-
+
+
+
diff --git a/integration_tests/.gitignore b/integration_tests/.gitignore
index 9722dbfaf..f03004b3c 100644
--- a/integration_tests/.gitignore
+++ b/integration_tests/.gitignore
@@ -12,3 +12,5 @@ node_modules
# solidity-coverage files
/coverage
/coverage.json
+
+results.json
diff --git a/integration_tests/.mocharc.json b/integration_tests/.mocharc.json
index 3a8d4f3e8..b96fb77c4 100644
--- a/integration_tests/.mocharc.json
+++ b/integration_tests/.mocharc.json
@@ -3,5 +3,9 @@
"timeout": 40000,
"slow": 20000,
"parallel": true,
+ "reporter": "json",
+ "reporterOptions": [
+ "output=./results.json"
+ ],
"_": ["test/**/*.ts"]
}
diff --git a/integration_tests/package.json b/integration_tests/package.json
index 33298f069..32dc86253 100644
--- a/integration_tests/package.json
+++ b/integration_tests/package.json
@@ -41,5 +41,8 @@
"typechain": "^8.3.0",
"typescript": ">=4.5.0",
"yarn": "^1.22.21"
+ },
+ "dependencies": {
+ "mocha-junit-reporter": "^2.2.1"
}
}
diff --git a/integration_tests/test/accounts.test.ts b/integration_tests/test/accounts.test.ts
index 9ce1f4eb4..eb93759bc 100644
--- a/integration_tests/test/accounts.test.ts
+++ b/integration_tests/test/accounts.test.ts
@@ -8,8 +8,6 @@ describe("Accounts", function () {
it("should be able to get a fungible token balance", async function () {
const balance = await contracts.VTHO.balanceOf("0x7567d83b7b8d80addcb281a71d54fc7b3364ffed")
- console.log("Balance:", balance.toString())
-
expect(balance).to.be.greaterThan(0)
})
})
diff --git a/integration_tests/yarn.lock b/integration_tests/yarn.lock
index 96c4297b8..49bcff4a6 100644
--- a/integration_tests/yarn.lock
+++ b/integration_tests/yarn.lock
@@ -2051,7 +2051,7 @@ change-case@3.0.2:
upper-case "^1.1.1"
upper-case-first "^1.1.0"
-"charenc@>= 0.0.1":
+charenc@0.0.2, "charenc@>= 0.0.1":
version "0.0.2"
resolved "https://registry.npmjs.org/charenc/-/charenc-0.0.2.tgz"
integrity sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==
@@ -2388,7 +2388,7 @@ cross-fetch@^4.0.0:
dependencies:
node-fetch "^2.6.12"
-"crypt@>= 0.0.1":
+crypt@0.0.2, "crypt@>= 0.0.1":
version "0.0.2"
resolved "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz"
integrity sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==
@@ -3934,6 +3934,11 @@ is-buffer@^2.0.5:
resolved "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.5.tgz"
integrity sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ==
+is-buffer@~1.1.6:
+ version "1.1.6"
+ resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be"
+ integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==
+
is-callable@^1.1.3:
version "1.2.7"
resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.7.tgz#3bc2a85ea742d9e36205dcacdd72ca1fdc51b055"
@@ -4366,6 +4371,15 @@ md5.js@^1.3.4:
inherits "^2.0.1"
safe-buffer "^5.1.2"
+md5@^2.3.0:
+ version "2.3.0"
+ resolved "https://registry.yarnpkg.com/md5/-/md5-2.3.0.tgz#c3da9a6aae3a30b46b7b0c349b87b110dc3bda4f"
+ integrity sha512-T1GITYmFaKuO91vxyoQMFETst+O71VUPEU3ze5GNzDm0OWdP8v1ziTaAEPUr/3kLsY3Sftgz242A1SetQiDL7g==
+ dependencies:
+ charenc "0.0.2"
+ crypt "0.0.2"
+ is-buffer "~1.1.6"
+
media-typer@0.3.0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748"
@@ -4505,7 +4519,7 @@ mkdirp-promise@^5.0.1:
dependencies:
mkdirp "*"
-mkdirp@*:
+mkdirp@*, mkdirp@^3.0.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-3.0.1.tgz#e44e4c5607fb279c168241713cc6e0fea9adcb50"
integrity sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==
@@ -4529,6 +4543,17 @@ mnemonist@^0.38.0:
dependencies:
obliterator "^2.0.0"
+mocha-junit-reporter@^2.2.1:
+ version "2.2.1"
+ resolved "https://registry.yarnpkg.com/mocha-junit-reporter/-/mocha-junit-reporter-2.2.1.tgz#739f5595d0f051d07af9d74e32c416e13a41cde5"
+ integrity sha512-iDn2tlKHn8Vh8o4nCzcUVW4q7iXp7cC4EB78N0cDHIobLymyHNwe0XG8HEHHjc3hJlXm0Vy6zcrxaIhnI2fWmw==
+ dependencies:
+ debug "^4.3.4"
+ md5 "^2.3.0"
+ mkdirp "^3.0.0"
+ strip-ansi "^6.0.1"
+ xml "^1.0.1"
+
mocha@10.2.0, mocha@^10.0.0, mocha@^10.2.0:
version "10.2.0"
resolved "https://registry.npmjs.org/mocha/-/mocha-10.2.0.tgz"
@@ -7063,6 +7088,11 @@ xhr@^2.0.4, xhr@^2.3.3:
parse-headers "^2.0.0"
xtend "^4.0.0"
+xml@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/xml/-/xml-1.0.1.tgz#78ba72020029c5bc87b8a81a3cfcd74b4a2fc1e5"
+ integrity sha512-huCv9IH9Tcf95zuYCsQraZtWnJvBtLVE0QHMOs8bWyZAFZNDcYjsPq1nEx8jKA9y+Beo9v+7OBPRisQTjinQMw==
+
xmlhttprequest@1.8.0:
version "1.8.0"
resolved "https://registry.npmjs.org/xmlhttprequest/-/xmlhttprequest-1.8.0.tgz"