test: fix tests

This commit is contained in:
ThetaDev 2024-06-27 03:13:59 +02:00
parent 6646078944
commit 9f7b8405a7
No known key found for this signature in database
GPG key ID: E319D3C5148D65B6
6 changed files with 95 additions and 77 deletions

View file

@ -1,15 +1,15 @@
test:
# cargo test --features=rss
cargo nextest run --features=rss --no-fail-fast --failure-output final
cargo nextest run --features=rss --no-fail-fast --failure-output final --retries 1
unittest:
cargo nextest run --features=rss --no-fail-fast --failure-output final --lib
testyt:
cargo nextest run --features=rss --no-fail-fast --failure-output final --test youtube
cargo nextest run --features=rss --no-fail-fast --failure-output final --retries 1 --test youtube
testyt-localized:
YT_LANG=th cargo nextest run --features=rss --no-fail-fast --failure-output final --test youtube
YT_LANG=th cargo nextest run --features=rss --no-fail-fast --failure-output final --retries 1 --test youtube
testintl:
#!/usr/bin/env bash
@ -28,7 +28,7 @@ testintl:
for YT_LANG in "${LANGUAGES[@]}"; do
echo "---TESTS FOR $YT_LANG ---"
if YT_LANG="$YT_LANG" cargo test --test youtube -- --test-threads 4 --skip resolve; then
if YT_LANG="$YT_LANG" cargo nextest run --no-fail-fast --failure-output final --retries 1 --test-threads 4 --test youtube -E 'not test(/^resolve/)'; then
echo "--- $YT_LANG COMPLETED ---"
else
echo "--- $YT_LANG FAILED ---"