Skip to content
This repository has been archived by the owner on Jan 10, 2020. It is now read-only.

Multiline test descriptions and indentation for nested tests #37

Merged
merged 1 commit into from
Mar 15, 2017

Conversation

svetlyak40wt
Copy link
Contributor

@svetlyak40wt svetlyak40wt commented Jan 8, 2017

Reasoning

Working on cl-hamcrest I discovered, that it is hard to make tests which have multiline descriptions in Prove. CL-HAMCREST uses them to show failed match in a structured way, to make it easy to see where is wrong data.

In this pull, I've refactored a way how text indentation works inside of Prove.

svetlyak40wt added a commit to 40ants/cl-hamcrest that referenced this pull request Jan 11, 2017
@svetlyak40wt svetlyak40wt force-pushed the multiline-indentation branch 2 times, most recently from d02618e to 8653614 Compare January 14, 2017 08:25
@svetlyak40wt
Copy link
Contributor Author

@fukamachi please, review this pull. I've rebased it upon the master branch.

Multiline test descriptions will be indented according to the test's
indentation level. This can be useful if you want to provide
comprehensive testcase description.

This change was made to make cl-hamcrest work with Prove, as this
library uses multiline description to provide detailed information about
expected datastructures.
@svetlyak40wt
Copy link
Contributor Author

Eitaro, please, review this patch 😭

@fukamachi fukamachi merged commit a525f8c into fukamachi:master Mar 15, 2017
@svetlyak40wt
Copy link
Contributor Author

Great! You are the best! 🤝

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants