Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verbose #29

Closed
edouard-lopez opened this issue Sep 8, 2018 · 2 comments
Closed

Verbose #29

edouard-lopez opened this issue Sep 8, 2018 · 2 comments

Comments

@edouard-lopez
Copy link
Contributor

Is there a way to have a verbose mode where one can see what's happening? Something similar to bash -x cmd.

I'm asking because:

  1. when writing tests, I'm not sure if it's stuck or just taking some time ;
  2. when test fail I lack insight of what is wrong

For instance:

test "install with fisher"
    'Done+WRONG_VALUE+' = (
        docker run \
            --name pure \
            --rm \
            --tty \
        edouardlopez/pure-fish 'fisher rafaelrinaldi/pure' \
        | grep --only-matching 'Done'
    )
end

Will throw:


$ fishtape tests/ci.test.fish | tap-min
type: Could not find “”

install with fisher
        operator: =
        expected: 'Done2'
        actual:   undefined

3 tests complete (9ms)

Disclaimer: maybe I'm not having the right approach

@jorgebucaran
Copy link
Owner

@edouard-lopez The default behavior is as verbose as you can get, and there's a -q/--quiet option to silence it.

screen shot 2018-09-09 at 0 02 28

@jorgebucaran
Copy link
Owner

@edouard-lopez I forgot to mention there is a --dry-run option. I'm not sure if it will be survive #31, but thought it was worth mentioning.

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

No branches or pull requests

2 participants