Re: [rust-dev] A shiny test framework

2014-07-23 Thread Vladimir Pouzanov
On Wed, Jul 23, 2014 at 6:27 PM, Brian Anderson wrote: > I assume this translates to `#[test]` fns under the hood? > Exactly. That actually complicates `context` support a bit, as shiny needs to create nested modules. That would require forwarding all the views into child modules (as they are tr

Re: [rust-dev] A shiny test framework

2014-07-23 Thread Brian Anderson
Awesome! I'm glad to see people extending Rust's testing infrastructure with more expressive frameworks (I assume this translates to `#[test]` fns under the hood?). On 07/22/2014 12:06 PM, Vladimir Pouzanov wrote: I've just published a tiny test framework: shiny at https://github.com/farcaller

Re: [rust-dev] A shiny test framework

2014-07-23 Thread Nat Pryce
It's great to see Hamcrest ported to Rust. On 22 July 2014 20:06, Vladimir Pouzanov wrote: > I've just published a tiny test framework: shiny at > https://github.com/farcaller/shiny. It's best used with hamcrest-rust. > > This library exists because I find it ugly to redefine all the > initiali

Re: [rust-dev] A shiny test framework

2014-07-23 Thread Nat Pryce
Could you use RAII to call a lambda? On 22 July 2014 20:31, Vladimir Pouzanov wrote: > One note on why there's no after_each: > > You cannot really make sure that the epilogue is being called, so if you > need to do anything after your test case, use RAII in before_each. > > > On Tue, Jul 22, 2

Re: [rust-dev] A shiny test framework

2014-07-22 Thread Vladimir Pouzanov
One note on why there's no after_each: You cannot really make sure that the epilogue is being called, so if you need to do anything after your test case, use RAII in before_each. On Tue, Jul 22, 2014 at 8:10 PM, Benjamin Gudehus wrote: > Nice to see an RSpec-like test framework and Hamcrest as

Re: [rust-dev] A shiny test framework

2014-07-22 Thread Benjamin Gudehus
Nice to see an RSpec-like test framework and Hamcrest assertions/matchers for Rust! On Tue, Jul 22, 2014 at 9:09 PM, Ilya Dmitrichenko wrote: > Dude, that's pretty much rspec ;) sweet! > On 22 Jul 2014 20:07, "Vladimir Pouzanov" wrote: > >> I've just published a tiny test framework: shiny at >

Re: [rust-dev] A shiny test framework

2014-07-22 Thread Ilya Dmitrichenko
Dude, that's pretty much rspec ;) sweet! On 22 Jul 2014 20:07, "Vladimir Pouzanov" wrote: > I've just published a tiny test framework: shiny at > https://github.com/farcaller/shiny. It's best used with hamcrest-rust. > > This library exists because I find it ugly to redefine all the > initialisat

[rust-dev] A shiny test framework

2014-07-22 Thread Vladimir Pouzanov
I've just published a tiny test framework: shiny at https://github.com/farcaller/shiny. It's best used with hamcrest-rust. This library exists because I find it ugly to redefine all the initialisation code in every test case and I can't simply move it to a function due to problems with moving [T]