This repository has been archived on 2023-08-24. You can view files and clone it, but cannot push or open issues or pull requests.
bifm/docs/dev-docs/TESTING.md
2022-07-06 17:04:27 -04:00

41 lines
772 B
Markdown

# Testing Extractors
Testing extractors is a simple way to see if an extractor is broken without turning on your server or database.
Here are the following ways to test extractors.
## Usage
Your terminal must be in the root of the BIFM folder to run the following commands.
It is recommended to turn `debug` to `true` in your config before running the tests script.
```
node ./tests.js "[domain/extractor name/index]" "[end domain/extractor name/index/'-']"
```
### Examples
If you want to run the boost.ink example and end it after:
```
node ./tests.js boost.ink -
```
or
```
node ./tests.js boost -
```
Run all tests available:
```
node ./tests.js
```
Run linkvertise test and all after (alphabetically):
```
node ./tests.js "linkvertise (redirect)"
```