Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dkijania/rust-bdd
Example of bdd in rust
https://github.com/dkijania/rust-bdd
Last synced: 24 days 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 (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-04T10:50:01.000Z (over 1 year ago)
- Last Synced: 2024-04-20T08:12:46.809Z (7 months ago)
- Language: Rust
- Size: 93.8 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 6
-
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 | ![CircleCI](https://circleci.com/gh/dkijania/rust-bdd.svg?style=shield) | 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
```