how to hide RUNS prints from Jest to CCI log - automation

Is there any option to hide the RUNS ... logs when executing Jest tests in CircleCI?

Related

Enabling test coverage and reporter-html in jest Disable errors in CLI

Today I enabled the jest settings to generate code coverage and also generate the html-reporter, however, when I do that, jest no longer shows individual test errors on the command line, so I don't know which expected is wrong and which line displays this error, what should I enable to get it back to normal without losing jest coverage?

Jest Setup and CleanUp

Is it possible to do some tasks only once before all test suites and do the clean up once after all the test suites have completed?
The scenario is I want to create a user before any of the test suites are executed and once all the test suites complete executing then I want to clear all the trace of that user. How can I achieve that using jest and puppeteer?
I tried globalSetup globalTeardown and setupTestFrameworkScriptFile but they all run once before each test suites.

jest, logging success or failure between each test while the tests are running

seems like something quite basic but it dosen't seem to be available in jest automatically.
when i run my jest tests, during the test run i get the logging info from the code itself while the tests are run.
and only after the tests are finished i receive a summary of the spec results(which tests passed and which didn't).
what i'm trying to achieve is to have extra lines in my console, that fill while the tests are running, that tell which test we have just finished, and what was the result.. this will make log debugging so much simpler..
thanks!

Persist logging outputs after tests are run

When running integration tests in IntelliJ, logging output shows up in the console while the tests are running but when all the tests are run, they disappear. Only the startup and shutdown logging output persist in the IntelliJ console. Is there a way to persist the other logging outputs after the tests are done?
This should be done in your TestNG or JUnit run configuration
Go to "Logs" tab, select "Save console output to file" and choose the file to which you're saving the output.

Is there console.log output support to terminal/command-line with intern-runner?

I have a dependency with Intern where we have to spin up a Selenium server and use PhantomJS for our tests. We use Jenkins and may need some more inspection/debug output to console but the console.log's get suppressed from the test files to terminal/command-line
Is console.log to terminal/command-line supported yet?
How console.log works with intern-runner depends on where your test code is running. Unit tests (specified with suites) run in the browser, so that's where console.log output ends up. There isn't currently a way to get console output out of a browser for unit tests.
Functional tests (specified with functionalSuites) control a browser, but actually run in Node.js, so output from console.log statements in functional tests generally goes to intern's stdout. The exceptions are log statements in execute and executeAsync blocks; since those blocks run in the browser, that's where the log output ends up. You can retrieve browser logs in functional tests using getLogsFor('browser'), but WebDriver log support is inconsistent between browsers.