Skip to content

Commit

Permalink
add extra info to e2e test docs
Browse files Browse the repository at this point in the history
  • Loading branch information
freddyheppell committed Aug 12, 2024
1 parent e4de46a commit 1e13177
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/e2e/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The responses library is used to mock HTTP requests recorded from a real run of
3. Import `tools/test_site.xml`
4. Use `tools/gen_resp_record.py` to run the download command on the test site and record the responses.
5. Copy the recorded yml to `data/dl_requests_record.yaml`
6. Copy the download output to `data/download_out`
6. Copy the output of the download command to `data/download_out`

## `wpextract extract`

Expand All @@ -25,4 +25,8 @@ The model output from the download command is used to test the behaviour of the

1. Use `tools/posts_dl.sh` to download the webpages from the test site
2. Copy the output directory to `data/site_scrape`

3. Run the `wpextract extract` command:
```shell
wpextract extract tools/download_out tools/extract_out --scrape-root tools/site_scrape/
```
3. Copy the output of the extract command to `data/extract_out`

0 comments on commit 1e13177

Please sign in to comment.