From 8139608a3bf11bc6b5c6d83781ccab9c16584692 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 4 Sep 2020 14:13:56 +0530 Subject: coverage --- README | 7 ++ packages/taler-integrationtests/package.json | 1 + pnpm-lock.yaml | 101 ++++++++++++++++----------- 3 files changed, 70 insertions(+), 39 deletions(-) diff --git a/README b/README index 93eaf4ed3..80242dead 100644 --- a/README +++ b/README @@ -25,3 +25,10 @@ taler-integrationtests package: The test runner accepts a bash glob pattern as parameter. Individual tests can be run by specifying their name. + +To check coverage, use nyc from the root of the repository and make sure that the taler-wallet-cli +from the source tree is executed, and not the globally installed one: + + PATH="$PWD/packages/taler-wallet-cli/bin:$PATH" \ + nyc ./packages/taler-integrationtests/testrunner '*' + diff --git a/packages/taler-integrationtests/package.json b/packages/taler-integrationtests/package.json index 215738943..29d6940d2 100644 --- a/packages/taler-integrationtests/package.json +++ b/packages/taler-integrationtests/package.json @@ -11,6 +11,7 @@ "license": "AGPL-3.0-or-later", "devDependencies": { "esm": "^3.2.25", + "nyc": "^15.1.0", "prettier": "^2.0.5", "source-map-support": "^0.5.19", "ts-node": "^8.10.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9bdba271c..f8b236858 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -38,6 +38,7 @@ importers: tslib: 2.0.1 devDependencies: esm: 3.2.25 + nyc: 15.1.0 prettier: 2.0.5 source-map-support: 0.5.19 ts-node: 8.10.2_typescript@3.9.7 @@ -45,6 +46,7 @@ importers: specifiers: axios: ^0.19.2 esm: ^3.2.25 + nyc: ^15.1.0 prettier: ^2.0.5 source-map-support: ^0.5.19 taler-wallet-core: 'workspace:*' @@ -247,21 +249,21 @@ packages: dev: true resolution: integrity: sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg== - /@babel/core/7.11.1: + /@babel/core/7.11.6: dependencies: '@babel/code-frame': 7.10.4 - '@babel/generator': 7.11.0 + '@babel/generator': 7.11.6 '@babel/helper-module-transforms': 7.11.0 '@babel/helpers': 7.10.4 - '@babel/parser': 7.11.3 + '@babel/parser': 7.11.5 '@babel/template': 7.10.4 - '@babel/traverse': 7.11.0 - '@babel/types': 7.11.0 + '@babel/traverse': 7.11.5 + '@babel/types': 7.11.5 convert-source-map: 1.7.0 debug: 4.1.1 gensync: 1.0.0-beta.1 json5: 2.1.3 - lodash: 4.17.19 + lodash: 4.17.20 resolve: 1.17.0 semver: 5.7.1 source-map: 0.5.7 @@ -269,38 +271,38 @@ packages: engines: node: '>=6.9.0' resolution: - integrity: sha512-XqF7F6FWQdKGGWAzGELL+aCO1p+lRY5Tj5/tbT3St1G8NaH70jhhDIKknIZaDans0OQBG5wRAldROLHSt44BgQ== - /@babel/generator/7.11.0: + integrity: sha512-Wpcv03AGnmkgm6uS6k8iwhIwTrcP0m17TL1n1sy7qD0qelDu4XNeW0dN0mHfa+Gei211yDaLoEe/VlbXQzM4Bg== + /@babel/generator/7.11.6: dependencies: - '@babel/types': 7.11.0 + '@babel/types': 7.11.5 jsesc: 2.5.2 source-map: 0.5.7 dev: true resolution: - integrity: sha512-fEm3Uzw7Mc9Xi//qU20cBKatTfs2aOtKqmvy/Vm7RkJEGFQ4xc9myCfbXxqK//ZS8MR/ciOHw6meGASJuKmDfQ== + integrity: sha512-DWtQ1PV3r+cLbySoHrwn9RWEgKMBLLma4OBQloPRyDYvc5msJM9kvTLo1YnlJd1P/ZuKbdli3ijr5q3FvAF3uA== /@babel/helper-function-name/7.10.4: dependencies: '@babel/helper-get-function-arity': 7.10.4 '@babel/template': 7.10.4 - '@babel/types': 7.11.0 + '@babel/types': 7.11.5 dev: true resolution: integrity: sha512-YdaSyz1n8gY44EmN7x44zBn9zQ1Ry2Y+3GTA+3vH6Mizke1Vw0aWDM66FOYEPw8//qKkmqOckrGgTYa+6sceqQ== /@babel/helper-get-function-arity/7.10.4: dependencies: - '@babel/types': 7.11.0 + '@babel/types': 7.11.5 dev: true resolution: integrity: sha512-EkN3YDB+SRDgiIUnNgcmiD361ti+AVbL3f3Henf6dqqUyr5dMsorno0lJWJuLhDhkI5sYEpgj6y9kB8AOU1I2A== /@babel/helper-member-expression-to-functions/7.11.0: dependencies: - '@babel/types': 7.11.0 + '@babel/types': 7.11.5 dev: true resolution: integrity: sha512-JbFlKHFntRV5qKw3YC0CvQnDZ4XMwgzzBbld7Ly4Mj4cbFy3KywcR8NtNctRToMWJOVvLINJv525Gd6wwVEx/Q== /@babel/helper-module-imports/7.10.4: dependencies: - '@babel/types': 7.11.0 + '@babel/types': 7.11.5 dev: true resolution: integrity: sha512-nEQJHqYavI217oD9+s5MUBzk6x1IlvoS9WTPfgG43CbMEeStE0v+r+TucWdx8KFGowPGvyOkDT9+7DHedIDnVw== @@ -311,14 +313,14 @@ packages: '@babel/helper-simple-access': 7.10.4 '@babel/helper-split-export-declaration': 7.11.0 '@babel/template': 7.10.4 - '@babel/types': 7.11.0 - lodash: 4.17.19 + '@babel/types': 7.11.5 + lodash: 4.17.20 dev: true resolution: integrity: sha512-02EVu8COMuTRO1TAzdMtpBPbe6aQ1w/8fePD2YgQmxZU4gpNWaL9gK3Jp7dxlkUlUCJOTaSeA+Hrm1BRQwqIhg== /@babel/helper-optimise-call-expression/7.10.4: dependencies: - '@babel/types': 7.11.0 + '@babel/types': 7.11.5 dev: true resolution: integrity: sha512-n3UGKY4VXwXThEiKrgRAoVPBMqeoPgHVqiHZOanAJCG9nQUL2pLRQirUzl0ioKclHGpGqRgIOkgcIJaIWLpygg== @@ -326,21 +328,21 @@ packages: dependencies: '@babel/helper-member-expression-to-functions': 7.11.0 '@babel/helper-optimise-call-expression': 7.10.4 - '@babel/traverse': 7.11.0 - '@babel/types': 7.11.0 + '@babel/traverse': 7.11.5 + '@babel/types': 7.11.5 dev: true resolution: integrity: sha512-sPxZfFXocEymYTdVK1UNmFPBN+Hv5mJkLPsYWwGBxZAxaWfFu+xqp7b6qWD0yjNuNL2VKc6L5M18tOXUP7NU0A== /@babel/helper-simple-access/7.10.4: dependencies: '@babel/template': 7.10.4 - '@babel/types': 7.11.0 + '@babel/types': 7.11.5 dev: true resolution: integrity: sha512-0fMy72ej/VEvF8ULmX6yb5MtHG4uH4Dbd6I/aHDb/JVg0bbivwt9Wg+h3uMvX+QSFtwr5MeItvazbrc4jtRAXw== /@babel/helper-split-export-declaration/7.11.0: dependencies: - '@babel/types': 7.11.0 + '@babel/types': 7.11.5 dev: true resolution: integrity: sha512-74Vejvp6mHkGE+m+k5vHY93FX2cAtrw1zXrZXRlG4l410Nm9PxfEiVTn1PjDPV5SnmieiueY4AFg2xqhNFuuZg== @@ -351,8 +353,8 @@ packages: /@babel/helpers/7.10.4: dependencies: '@babel/template': 7.10.4 - '@babel/traverse': 7.11.0 - '@babel/types': 7.11.0 + '@babel/traverse': 7.11.5 + '@babel/types': 7.11.5 dev: true resolution: integrity: sha512-L2gX/XeUONeEbI78dXSrJzGdz4GQ+ZTA/aazfUsFaWjSe95kiCuOZ5HsXvkiw3iwF+mFHSRUfJU8t6YavocdXA== @@ -364,13 +366,13 @@ packages: dev: true resolution: integrity: sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA== - /@babel/parser/7.11.3: + /@babel/parser/7.11.5: dev: true engines: node: '>=6.0.0' hasBin: true resolution: - integrity: sha512-REo8xv7+sDxkKvoxEywIdsNFiZLybwdI7hcT5uEPyQrSMB4YQ973BfC9OOrD/81MaIjh6UxdulIQXkjmiH3PcA== + integrity: sha512-X9rD8qqm695vgmeaQ4fvz/o3+Wk4ZzQvSHkDBgpYKxpD4qTAUm88ZKtHkVqIOsYFFbIQ6wQYhC6q7pjqVK0E0Q== /@babel/runtime-corejs3/7.11.2: dependencies: core-js-pure: 3.6.5 @@ -387,33 +389,33 @@ packages: /@babel/template/7.10.4: dependencies: '@babel/code-frame': 7.10.4 - '@babel/parser': 7.11.3 - '@babel/types': 7.11.0 + '@babel/parser': 7.11.5 + '@babel/types': 7.11.5 dev: true resolution: integrity: sha512-ZCjD27cGJFUB6nmCB1Enki3r+L5kJveX9pq1SvAUKoICy6CZ9yD8xO086YXdYhvNjBdnekm4ZnaP5yC8Cs/1tA== - /@babel/traverse/7.11.0: + /@babel/traverse/7.11.5: dependencies: '@babel/code-frame': 7.10.4 - '@babel/generator': 7.11.0 + '@babel/generator': 7.11.6 '@babel/helper-function-name': 7.10.4 '@babel/helper-split-export-declaration': 7.11.0 - '@babel/parser': 7.11.3 - '@babel/types': 7.11.0 + '@babel/parser': 7.11.5 + '@babel/types': 7.11.5 debug: 4.1.1 globals: 11.12.0 - lodash: 4.17.19 + lodash: 4.17.20 dev: true resolution: - integrity: sha512-ZB2V+LskoWKNpMq6E5UUCrjtDUh5IOTAyIl0dTjIEoXum/iKWkoIEKIRDnUucO6f+2FzNkE0oD4RLKoPIufDtg== - /@babel/types/7.11.0: + integrity: sha512-EjiPXt+r7LiCZXEfRpSJd+jUMnBd4/9OUv7Nx3+0u9+eimMwJmG0Q98lw4/289JCoxSE8OolDMNZaaF/JZ69WQ== + /@babel/types/7.11.5: dependencies: '@babel/helper-validator-identifier': 7.10.4 - lodash: 4.17.19 + lodash: 4.17.20 to-fast-properties: 2.0.0 dev: true resolution: - integrity: sha512-O53yME4ZZI0jO1EVGtF1ePGl0LHirG4P1ibcD80XyzZcKhcMFeCXmh4Xb1ifGBIV233Qg12x4rBfQgA+tmOukA== + integrity: sha512-bvM7Qz6eKnJVFIn+1LPtjlBFPVN5jNDc1XmN15vWe7Q3DPBufWWsLiIvUu7xW87uTG6QoggpIDnUgLQvPheU+Q== /@concordance/react/2.0.0: dependencies: arrify: 1.0.1 @@ -832,6 +834,15 @@ packages: node: '>=8' resolution: integrity: sha512-quoaXsZ9/BLNae5yiNoUz+Nhkwz83GhWwtYFglcjEQB2NDHCIpApbqXxIFnm4Pq/Nvhrsq5sYJFyohrrxnTGAA== + /aggregate-error/3.1.0: + dependencies: + clean-stack: 2.2.0 + indent-string: 4.0.0 + dev: true + engines: + node: '>=8' + resolution: + integrity: sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA== /airbnb-prop-types/2.16.0_react@16.13.1: dependencies: array.prototype.find: 2.1.1 @@ -2899,7 +2910,7 @@ packages: integrity: sha512-Pt/uge1Q9s+5VAZ+pCo16TYMWPBIl+oaNIjgLQxcX0itS6ueeaA+pEfThZpH8WxhFgCiEb8sAJY6MdUKgiIWaQ== /istanbul-lib-instrument/4.0.3: dependencies: - '@babel/core': 7.11.1 + '@babel/core': 7.11.6 '@istanbuljs/schema': 0.1.2 istanbul-lib-coverage: 3.0.0 semver: 6.3.0 @@ -2926,7 +2937,7 @@ packages: dependencies: istanbul-lib-coverage: 3.0.0 make-dir: 3.1.0 - supports-color: 7.1.0 + supports-color: 7.2.0 dev: true engines: node: '>=8' @@ -3155,6 +3166,10 @@ packages: dev: true resolution: integrity: sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ== + /lodash/4.17.20: + dev: true + resolution: + integrity: sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA== /log-symbols/3.0.0: dependencies: chalk: 2.4.2 @@ -3585,7 +3600,7 @@ packages: integrity: sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A== /p-map/3.0.0: dependencies: - aggregate-error: 3.0.1 + aggregate-error: 3.1.0 dev: true engines: node: '>=8' @@ -4529,6 +4544,14 @@ packages: node: '>=8' resolution: integrity: sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g== + /supports-color/7.2.0: + dependencies: + has-flag: 4.0.0 + dev: true + engines: + node: '>=8' + resolution: + integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== /table/5.4.6: dependencies: ajv: 6.12.3 -- cgit v1.2.3