3

How does one suppress all compilation warnings (not errors) when running truffle test? Using the --quiet parameter does not seem to work.

Truffle v5.0.0 (core: 5.0.0)
Node v10.15.3
Ferit
  • 8,692
  • 8
  • 34
  • 59
trajan
  • 1,093
  • 2
  • 12
  • 15
  • 1
    Do you need to see errors so that's why you want to suppress warnings? – Ferit Jun 01 '19 at 16:15
  • 1
    It's less about seeing test errors and failures and more about seeing compilation and syntax errors that tend to get lost in the sea of warnings. These warnings result from 3rd party libraries that I don't want to touch. – trajan Jun 03 '19 at 10:48
  • See my answer @trajan . If you want to see compilation errors use `truffle compile | grep 'Error'` instead. – Ferit Jun 03 '19 at 14:19

1 Answers1

1

You can't suppress warnings, no such functionality yet in Truffle.

However, you can filter the output. I'm going to show an example using grep.

~/your_project_dir$ truffle test | grep 'Error'

This will show only the lines which contain the word "Error".

Ferit
  • 8,692
  • 8
  • 34
  • 59