forked from input-output-hk/daedalus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DDW-617] update readme and pr template
- Loading branch information
1 parent
8e3c798
commit 5ea7ee3
Showing
2 changed files
with
31 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,30 +2,46 @@ | |
<sub>Document maintainer: Nikola Glumac<br/>Document status: Active</sub> | ||
</blockquote> | ||
|
||
# Running Daedalus acceptance tests | ||
|
||
# Install Daedalus | ||
|
||
1. Make sure you have node and yarn installed on your machine | ||
2. Clone Daedalus repository to your machine (`git clone [email protected]:input-output-hk/daedalus.git`) | ||
3. Install dependencies from within Daedalus directory: | ||
|
||
```bash | ||
$ cd daedalus/ | ||
$ yarn install | ||
``` | ||
|
||
4. Build and run the backend (Cardano SL) following the instructions from [Daedalus](https://github.com/input-output-hk/daedalus/blob/master/README.md#development---with-cardano-wallet) README file. | ||
5. Run Daedalus frontend tests: | ||
# Run unit tests | ||
|
||
Make sure Daedalus is properly installed (see above). | ||
|
||
```bash | ||
$ yarn test:unit | ||
``` | ||
|
||
# Run UI tests | ||
|
||
1. Make sure Daedalus is properly installed (see above). | ||
2. Build and run the backend (Cardano SL) following the instructions from [Daedalus](https://github.com/input-output-hk/daedalus/blob/master/README.md#development---with-cardano-wallet) README file. | ||
3. Run Daedalus frontend tests: | ||
|
||
```bash | ||
$ cd daedalus/ | ||
$ nix-shell --arg autoStartBackend true --arg systemStart XXX # XXX = cardano system startup time | ||
$ yarn nix:dev XXX # XXX = cardano system startup time | ||
$ yarn build | ||
$ yarn test:ui | ||
``` | ||
|
||
# Run all tests | ||
|
||
```bash | ||
$ yarn test | ||
``` | ||
|
||
Once tests are complete you will get a summary of passed/failed tests in the Terminal window. | ||
|
||
## Keeping Daedalus Alive After Tests | ||
## Keeping Daedalus Alive After UI Tests | ||
|
||
While working on the tests it's often useful to keep Daedalus alive after the tests have run | ||
(e.g: to inspect the app state). You can pass a special environment var to tell the test script | ||
|