https://github.com/dkijania/rust-bdd
Example of bdd in rust
https://github.com/dkijania/rust-bdd
Last synced: about 2 months ago
JSON representation
Example of bdd in rust
- Host: GitHub
- URL: https://github.com/dkijania/rust-bdd
- Owner: dkijania
- Created: 2021-04-01T09:17:23.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-04-04T10:50:01.000Z (about 2 years ago)
- Last Synced: 2025-01-22T00:37:25.977Z (3 months ago)
- Language: Rust
- Size: 93.8 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rust-bdd
Example of bdd in rust## Master current build status
| CI | Status | Description |
|---:|:------:|:------------|
| CircleCI |  | Master |# setup
## build
`cargo build`
## test
Before running tests below env variables needs to be defined:
1. User api key
```
set API_KEY="68m51U..."
```
2. Secret key
```
set SECRET_KEY="b67VivGPzyumN4Rj52h..."
```
3. Api endpoint
```
set API_ENDPOINT=https://api.sample.com
```Optionally debug environment variable can be defined to allow steps and api debug printout
```
set DEBUG=true
```### to see test output
`cargo test -- --nocapture`
# docker
For demo purposed a Dockerfile is provided
## build
`docker build . -t rust-bdd`
## run
```
docker run -e API_ENDPOINT="..." -e API_KEY="..." -e SECRET_KEY="..." -e DEBUG="..." rust-bdd
```