From 19c52bec6af3aa8f694c16be3f8bcaeed5238973 Mon Sep 17 00:00:00 2001 From: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com> Date: Wed, 26 Apr 2023 16:19:31 +0200 Subject: [PATCH] Increase integration test coverage (#4902) * Create and update tests * Create and update tests --------- Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com> --- .../alternative/test_alt.openbb | 11 ++++++ .../cryptocurrency/test_crypto_defi.openbb | 4 +- .../cryptocurrency/test_crypto_onchain.openbb | 4 ++ .../economy/test_economoy_qa.openbb | 38 +++++++++++++++++++ .../etf/test_etf.openbb | 7 ++++ .../forex/test_forex_base.openbb | 11 ++++++ .../forex/test_forex_ta.openbb | 3 ++ .../futures/test_futures.openbb | 2 + .../mutual_funds/test_mutual_fund.openbb | 13 +++++++ .../stocks/test_stocks.openbb | 32 ++++++++++++++++ .../stocks/test_stocks_dps.openbb | 3 ++ .../stocks/test_stocks_res.openbb | 6 +++ .../stocks/test_stocks_ta.openbb | 5 +++ 13 files changed, 138 insertions(+), 1 deletion(-) create mode 100644 openbb_terminal/miscellaneous/integration_tests_scripts/alternative/test_alt.openbb create mode 100644 openbb_terminal/miscellaneous/integration_tests_scripts/economy/test_economoy_qa.openbb create mode 100644 openbb_terminal/miscellaneous/integration_tests_scripts/mutual_funds/test_mutual_fund.openbb create mode 100644 openbb_terminal/miscellaneous/integration_tests_scripts/stocks/test_stocks_res.openbb diff --git a/openbb_terminal/miscellaneous/integration_tests_scripts/alternative/test_alt.openbb b/openbb_terminal/miscellaneous/integration_tests_scripts/alternative/test_alt.openbb new file mode 100644 index 000000000000..19b61c2b9d2f --- /dev/null +++ b/openbb_terminal/miscellaneous/integration_tests_scripts/alternative/test_alt.openbb @@ -0,0 +1,11 @@ +alternative +hn -l 5 +covid +.. +oss +.. +realestate +.. +help +reset +exit diff --git a/openbb_terminal/miscellaneous/integration_tests_scripts/cryptocurrency/test_crypto_defi.openbb b/openbb_terminal/miscellaneous/integration_tests_scripts/cryptocurrency/test_crypto_defi.openbb index d52a15356304..7cc8708d9171 100644 --- a/openbb_terminal/miscellaneous/integration_tests_scripts/cryptocurrency/test_crypto_defi.openbb +++ b/openbb_terminal/miscellaneous/integration_tests_scripts/cryptocurrency/test_crypto_defi.openbb @@ -13,7 +13,7 @@ vaults --chain ${crypto_full=ethereum} --protocol aave --kind stable --top 3 --l vaults --chain ${crypto_full=ethereum} -s apy -r # tokens -tokens +tokens # this is running into a timeout issue tokens --skip 3 --limit 3 --sort totalLiquidity tokens --sort txCount --reverse @@ -68,6 +68,8 @@ sreturn --limit 200 anchor --address terra13kc0x8kr3sq8226myf4nmanmn2mrk9s5s9wsnz anchor --address terra13kc0x8kr3sq8226myf4nmanmn2mrk9s5s9wsnz --transactions +help +reset exit # TERRA ADDRESSES FOR EXAMPLES diff --git a/openbb_terminal/miscellaneous/integration_tests_scripts/cryptocurrency/test_crypto_onchain.openbb b/openbb_terminal/miscellaneous/integration_tests_scripts/cryptocurrency/test_crypto_onchain.openbb index d0c18819d7e6..75280448c621 100644 --- a/openbb_terminal/miscellaneous/integration_tests_scripts/cryptocurrency/test_crypto_onchain.openbb +++ b/openbb_terminal/miscellaneous/integration_tests_scripts/cryptocurrency/test_crypto_onchain.openbb @@ -73,6 +73,10 @@ prices --sort volumeConverted --reverse # loads transaction hash address 0x9dc7b43ad4288c624fdd236b2ecb9f2b81c93e706b2ffd1d19b112c1df7849e6 -tx +hr -i 1w + # tx +help +reset exit diff --git a/openbb_terminal/miscellaneous/integration_tests_scripts/economy/test_economoy_qa.openbb b/openbb_terminal/miscellaneous/integration_tests_scripts/economy/test_economoy_qa.openbb new file mode 100644 index 000000000000..860336c4f013 --- /dev/null +++ b/openbb_terminal/miscellaneous/integration_tests_scripts/economy/test_economoy_qa.openbb @@ -0,0 +1,38 @@ +economy +macro +treasury +qa + +# Statistics +summary +normality +unitroot + +# Plots +line +line --log +hist +hist -b 10 +cdf +bw +bw -y +acf +qqplot + +# Rolling Metrics +rolling +spread +quantile +skew +kurtosis + +# Other +raw -r +decompose +decompose -m +cusum + +pick united_states_CPI +help +reset +exit diff --git a/openbb_terminal/miscellaneous/integration_tests_scripts/etf/test_etf.openbb b/openbb_terminal/miscellaneous/integration_tests_scripts/etf/test_etf.openbb index 62c0fb3e1b9c..a92574196371 100644 --- a/openbb_terminal/miscellaneous/integration_tests_scripts/etf/test_etf.openbb +++ b/openbb_terminal/miscellaneous/integration_tests_scripts/etf/test_etf.openbb @@ -10,4 +10,11 @@ candle --sort adjclose --reverse --raw candle -t --ma 4 news compare spy,ivv +disc +.. +help +search -n vol +ta +.. +reset exit diff --git a/openbb_terminal/miscellaneous/integration_tests_scripts/forex/test_forex_base.openbb b/openbb_terminal/miscellaneous/integration_tests_scripts/forex/test_forex_base.openbb index bde2ad1ba06c..cd55e6af7a9d 100644 --- a/openbb_terminal/miscellaneous/integration_tests_scripts/forex/test_forex_base.openbb +++ b/openbb_terminal/miscellaneous/integration_tests_scripts/forex/test_forex_base.openbb @@ -6,4 +6,15 @@ fwd quote quote --source YahooFinance quote --source AlphaVantage +candle --sort open -r --raw --limit 10 +candle -t +help +oanda +qa +.. +ta +.. +forecast +.. +reset exit diff --git a/openbb_terminal/miscellaneous/integration_tests_scripts/forex/test_forex_ta.openbb b/openbb_terminal/miscellaneous/integration_tests_scripts/forex/test_forex_ta.openbb index 9e8ffc1b647f..0ff92521e81d 100644 --- a/openbb_terminal/miscellaneous/integration_tests_scripts/forex/test_forex_ta.openbb +++ b/openbb_terminal/miscellaneous/integration_tests_scripts/forex/test_forex_ta.openbb @@ -45,4 +45,7 @@ aroon bbands donchian fib +ad -l 15 -d 2 +help +reset exit diff --git a/openbb_terminal/miscellaneous/integration_tests_scripts/futures/test_futures.openbb b/openbb_terminal/miscellaneous/integration_tests_scripts/futures/test_futures.openbb index 0d9f9cd38b6c..7a57faaaae75 100644 --- a/openbb_terminal/miscellaneous/integration_tests_scripts/futures/test_futures.openbb +++ b/openbb_terminal/miscellaneous/integration_tests_scripts/futures/test_futures.openbb @@ -6,4 +6,6 @@ historical OJ -s 2022-01-01 -e 2022-01-20 historical M6B,MSF,M6E curve OJ curve CL --raw +help +reset exit diff --git a/openbb_terminal/miscellaneous/integration_tests_scripts/mutual_funds/test_mutual_fund.openbb b/openbb_terminal/miscellaneous/integration_tests_scripts/mutual_funds/test_mutual_fund.openbb new file mode 100644 index 000000000000..0ce36eb01775 --- /dev/null +++ b/openbb_terminal/miscellaneous/integration_tests_scripts/mutual_funds/test_mutual_fund.openbb @@ -0,0 +1,13 @@ +funds +country --name united_states +search --fund morning +load --fund Vanguard +plot -c both +sector -t equity +sector -t fixed_income +holdings -t all +carbon +exclusion +help +reset +exit diff --git a/openbb_terminal/miscellaneous/integration_tests_scripts/stocks/test_stocks.openbb b/openbb_terminal/miscellaneous/integration_tests_scripts/stocks/test_stocks.openbb index a9a76c738304..714286bbfdf3 100644 --- a/openbb_terminal/miscellaneous/integration_tests_scripts/stocks/test_stocks.openbb +++ b/openbb_terminal/miscellaneous/integration_tests_scripts/stocks/test_stocks.openbb @@ -11,4 +11,36 @@ candle --raw candle --sort AdjClose -r --raw codes news -l 3 +th +.. +options +.. +disc +.. +dps +.. +scr +.. +ins +.. +gov +.. +ba +.. +ca +.. +fa +.. +bt +.. +ta +.. +qa +.. +forecast +.. +res +.. +help +reset exit diff --git a/openbb_terminal/miscellaneous/integration_tests_scripts/stocks/test_stocks_dps.openbb b/openbb_terminal/miscellaneous/integration_tests_scripts/stocks/test_stocks_dps.openbb index d956145da9eb..e1a5242d8d85 100644 --- a/openbb_terminal/miscellaneous/integration_tests_scripts/stocks/test_stocks_dps.openbb +++ b/openbb_terminal/miscellaneous/integration_tests_scripts/stocks/test_stocks_dps.openbb @@ -13,4 +13,7 @@ ftd load ${ticker=aapl} -i 5 ftd -n 5 --raw dpotc +# prom -t T1 +help +reset exit diff --git a/openbb_terminal/miscellaneous/integration_tests_scripts/stocks/test_stocks_res.openbb b/openbb_terminal/miscellaneous/integration_tests_scripts/stocks/test_stocks_res.openbb new file mode 100644 index 000000000000..3e9ce7a9c44b --- /dev/null +++ b/openbb_terminal/miscellaneous/integration_tests_scripts/stocks/test_stocks_res.openbb @@ -0,0 +1,6 @@ +stocks +load ${ticker=aapl} +res +help +reset +exit diff --git a/openbb_terminal/miscellaneous/integration_tests_scripts/stocks/test_stocks_ta.openbb b/openbb_terminal/miscellaneous/integration_tests_scripts/stocks/test_stocks_ta.openbb index caab488a07b2..e4adb76f63fb 100644 --- a/openbb_terminal/miscellaneous/integration_tests_scripts/stocks/test_stocks_ta.openbb +++ b/openbb_terminal/miscellaneous/integration_tests_scripts/stocks/test_stocks_ta.openbb @@ -77,4 +77,9 @@ ad adosc obv fib +atr +cones +multi -i macd[12,26,9],rsi,sma[20] +help +reset exit