How to pass CLI options when using Newman as a Library?

I was using these CLI options when using the CLI:

  • –reporter-cli-no-failures
  • –reporter-cli-no-console

However, I couldn’t figure out how to pass these CLI options when using Newman as a Library.
Any example around?

Thank you

Hey @nifepo

Would it be something like this:

reporters: 'cli', 
reporter​: ​{​
        ​cli: ​{​
            ​noFailures: true, 
            ​noConsole: true
        ​}​
    ​}​

I haven’t run this so not 100% sure.

Hi @danny-dainton , I apologize for the late reply.

It didn’t solve it unfortunately. No changes on execution report. Any other idea or where could I look at?

Thank you