Skip to content

revel test should return a non-zero exit code on test failure #100

@jesseroux

Description

@jesseroux

I'm trying to use travis to test my project which will run both my Go tests and Revel tests. However revel test will always return exit code 0, even if the tests fail. This makes it difficult to incorporate into automated testing scripts.

My current workaround is to do revel test 2>1 | grep -e "All Tests Passed." which returns 0 if it matches the text, or 1 otherwise. However this means that grep swallows the output and I can't see what actually failed. This turns into a mess of writing the log to a file, checking the file, printing log output if it's not found, etc.

Non-zero exit codes on test failure are typically the norm for automated test runners.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions