Skip to content

simnalamburt/bear

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bear-i bear version-i

Dead-simple test helper for rust. See documentation for the further details.

Example

# Cargo.toml
[dev-dependencies]
bear = "0.2"
// tests/test.rs
extern crate bear;

use bear::fixture;

#[test]
fn do_some_test() {
    // Get a content of 'tests/fixtures/hello.txt'
    let content = fixture("hello.txt");

    // Do whatever you want with it
}

 


BSD 2-Clause

About

Dead-simple test helper

Resources

License

Stars

Watchers

Forks

Languages