Ever wanted to check how your Kiwi specs would read out loud, or you wanted to share your spec with your teammates.
Specipy helps into parsing a kiwi spec file to human readable format, allowing you to have a higher picture on which parts your tests covers.
Using specipy helps raising the tests abstraction layer when testing, and helps moving forward with writing tests.
First install pip if you don't have it.
Install specipy with pip:
pip install specipy
Specipy is used as following:
specipy <path_to_spec_file>
A kiwi spec would look like this:
--------------------------------------------------
Describe: The first describe
--------------------------------------------------
When: first context
It: has this test
It: and a second test
When: inner context
It: has this an inner test
It: and a second inner test
When: second context
It: has this othertest
--------------------------------------------------
Describe: The second describe
--------------------------------------------------
When: second descibe context
It: has this other test
It: and another test
Sure, tests cover all the possible parsing situations.
- Fork it ( https://github.com/oarrabi/specipy/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request