This repository was archived by the owner on Apr 29, 2021. It is now read-only.
Support log file and filtering tests#173
Open
jinuxstyle wants to merge 3 commits intosstephenson:masterfrom
Open
Support log file and filtering tests#173jinuxstyle wants to merge 3 commits intosstephenson:masterfrom
jinuxstyle wants to merge 3 commits intosstephenson:masterfrom
Conversation
Add support of command line options that take valuea. This paves way for adding more features like logging to a specified file and filtering tests based on a pattern given by user.
Currently, bats puts logs to a temporary file and removes the file at the end of the test. This is not convenient for observing the logs. This commit makes it possible for user to specify a log file and observe the logs during test or for post test analyzing. A new option named -l (or --logfile) is added for this function.
Support filtering tests based on the regex pattern given by user. A new option named -f (or --filter) is added for this feature. For example, to run tests whose name contain word foo or Foo: $ bats --tap --filter '[Ff]oo'
|
filtering is a nice convenience -- and often allows for faster development of tests. Jasmine uses the word "focused", e.g. prefixing a I see a lot of PRs stacking up, @sstephenson are you looking for help maintaining? |
|
@briceburg Yes, the project is in need of a lead maintainer. See #150. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains three commits which together are intended to support log to a
a specified file and filtering tests based on regex pattern given by user.
commit 734a049
commit d7aea2a
commit 0d743bc
Signed-off-by: Jin Xu jinuxstyle@hotmail.com