Popularity
2.7
Declining
Activity
0.0
Stable
96
6
7

Programming language: Rust
License: Apache License 2.0
Tags: Development Tools     Testing    

shiny alternatives and similar packages

Based on the "Testing" category.
Alternatively, view shiny alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of shiny or a related project?

Add another 'Testing' Package

README

Ooh, shiny!

Build Status

Shiny makes you less distracted with copying over initialization code in test cases. It also has a fancy syntax similar to Ruby's RSpec or Objective-C's Kiwi.

Installation

Install in the usual way with cargo.

Usage

Add the shiny crate:

#![feature(plugin)]
#![plugin(shiny)]

Write your shiny test case:

#[cfg(test)]
mod test {
  describe!(
    before_each {
      let awesome = true;
    }

    it "is awesome" {
      assert!(awesome);
    }

    it "injects before_each into all test cases" {
      let still_awesome = awesome;
      assert!(still_awesome);
    }
  )
}

All the items from before_each are inserted as-is into each generated test case function. Mind the final semicolon in before_each block!

TODO

  • add support for context to do recursive prologue injections
  • better filtering for test case name

License

Shiny is distributed under Apache-2.0, see LICENSE for more details.


*Note that all licence references and agreements mentioned in the shiny README section above are relevant to that project's source code only.