wallet-core/README

61 lines
1.4 KiB
Plaintext
Raw Normal View History

2020-11-16 16:51:09 +01:00
# GNU Taler Wallet
2016-04-08 15:20:05 +02:00
2020-08-10 13:32:08 +02:00
This repository contains the implementation of a wallet for GNU Taler written
in TypeScript.
2016-04-08 15:20:05 +02:00
2015-11-25 20:41:31 +01:00
2020-11-16 16:51:09 +01:00
## Dependencies
2020-11-04 14:16:28 +01:00
In order to build the GNU Taler wallet, make sure that you have Node.JS and pnpm installed.
2020-11-16 16:51:09 +01:00
## Installation
2016-03-18 15:47:17 +01:00
2020-11-16 16:51:09 +01:00
The CLI version of the wallet supports the normal GNU installation process.
2020-11-16 16:51:09 +01:00
```shell
./configure [ --prefix=$PREFIX ] && make install
```
2020-11-16 16:51:09 +01:00
### Building the WebExtension
2020-11-04 14:16:28 +01:00
The WebExtension can be built via the 'webextension' make target:
2020-11-16 16:51:09 +01:00
```shell
./configure && make webextension
```
2020-11-04 14:16:28 +01:00
This will create the zip file with the WebExtension in the location
2020-11-16 16:51:09 +01:00
```
packages/taler-wallet-webextension/taler-wallet-$VERSION.zip
```
### Compiling from Git
2020-11-04 14:16:28 +01:00
2020-11-16 16:51:09 +01:00
If you are compiling the code from git, you have to run `./bootstrap` before
running `./configure`.
2020-11-04 14:16:28 +01:00
2020-11-16 16:51:09 +01:00
# Integration Tests
2016-04-08 15:20:05 +02:00
2020-08-10 13:32:08 +02:00
This repository comes with integration tests for GNU Taler. To run them,
install the wallet first. Then use the test runner from the
taler-integrationtests package:
2016-03-18 15:47:17 +01:00
2020-11-16 16:51:09 +01:00
```shell
cd packages/taler-integrationtests/
./testrunner '*'
```
2016-03-18 15:47:17 +01:00
2020-08-10 13:32:08 +02:00
The test runner accepts a bash glob pattern as parameter. Individual tests can
be run by specifying their name.
2020-09-04 10:43:56 +02:00
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:
2020-11-16 16:51:09 +01:00
```
PATH="$PWD/packages/taler-wallet-cli/bin:$PATH" \
nyc ./packages/taler-integrationtests/testrunner '*'
```