Skip to content

shell script highlights successful `swift test` in green and failed in red

Notifications You must be signed in to change notification settings

vitalz/sweet-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

By default swift test does not highlight result in Terminal output. And it is not an easy thing to understand if tests have not passed successfully.

Instead of echo $? run a script highlighting result. For example, add this ./bin folder containing sweet-test on your path and run it from everywhere in the system like:

sweet-test

It runs on Mac OS, Mac Docker, native Linux.

There are examples on screenshots below.

Success:
success

Failure:
failure

About

shell script highlights successful `swift test` in green and failed in red

Topics

Resources

Stars

Watchers

Forks

Languages