Skip to content

Commit

Permalink
fix: tests script
Browse files Browse the repository at this point in the history
  • Loading branch information
ilbertt committed Jan 6, 2025
1 parent 88afb82 commit dd3633c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/rust-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
run: cargo clippy --all-targets --all-features --workspace -- -Dwarnings

- name: Cargo test
run: cargo test
run: ./scripts/test.sh
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,14 @@ In order to send messages to the bot by running the backend locally, you can dep
You still need to configure Telegram to send messages to the bot via webhooks as described in [the previous step](#3-configure-telegram-to-send-messages-to-the-bot-via-webhooks).

## Testing

Unit tests are available with the following command:

```bash
./scripts/test.sh
```

## Roadmap

- [ ] add support for `/delete_file` and `/delete_dir` commands
Expand Down
3 changes: 3 additions & 0 deletions scripts/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

TELEGRAM_SECRET_TOKEN=test-secret-token cargo test

0 comments on commit dd3633c

Please sign in to comment.