-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support full match option (#50)
* feat: support full match option (#49) * doc: update WeChat config example * test: add huobi test script
- Loading branch information
Showing
12 changed files
with
126 additions
and
30 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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# E2E test for huobi provider. | ||
|
||
# set -x # debug | ||
set -eo errexit | ||
|
||
TEST_DIR=`dirname "$(realpath $0)"` | ||
ROOT_DIR="$TEST_DIR/.." | ||
|
||
make -f "$ROOT_DIR/Makefile" build | ||
mkdir -p "$ROOT_DIR/test/output" | ||
|
||
# generate huobi bills output in beancount format | ||
"$ROOT_DIR/bin/double-entry-generator" translate \ | ||
--provider huobi \ | ||
--config "$ROOT_DIR/example/huobi/config.yaml" \ | ||
--output "$ROOT_DIR/test/output/test-huobi-output.beancount" \ | ||
"$ROOT_DIR/example/huobi/example-huobi-records.csv" | ||
|
||
diff -u --color \ | ||
"$ROOT_DIR/example/huobi/example-huobi-output.beancount" \ | ||
"$ROOT_DIR/test/output/test-huobi-output.beancount" | ||
|
||
if [ $? -ne 0 ]; then | ||
echo "[FAIL] Huobi provider output is different from expected output." | ||
exit 1 | ||
fi | ||
|
||
echo "[PASS] All Huobi provider tests!" |