jest


Is there a good report for jest test case?


I am using jest to test my reactjs application. It works fine but jest doesn't give me a good report about test case results. The output of jest shows each test suite followed by its output. I have more than 50 test suites and it is hard for me to scroll up to check each failed test cases. Is there a brief jest report which printing a brief summary about the whole test cases?
below is my jest.conf file:
{
"testRegex": "/tests/.*\\.test\\.jsx?$",
"testEnvironment": "node",
"roots": ["./src"],
"coverageReporters": ["text-summary", "html"]
}
You can run jest with the --coverage flag.
If you want something different than the default reporters, you have to set them in your jest config file.
jest.json
{
"coverageReporters": ["text-summary", "html"]
}
text-summary gives you a short summary beneath all tests that tells you how many suites/tests are successful/failed.
html gives you a some html pages that you can browse through to see exactly what got tested.
CLI
$ ./node_modules/.bin/jest --config ./path/to/jest.json --coverage
You might want to adjust which files are covered etc.
See all coverage options in the jest docs.

Related Links

Is there a good report for jest test case?
Jest is hung there
Error: Invariant Violation: Element type is invalid
maxTotalConnection and defaultMaxTotalConnectionPerRoute
Calling CreateIndex with settings without using ImmutableSettings

Categories

HOME
spring-data
extjs
adfs3.0
d3.js
tcsh
theano
docker-cloud
tfs2010
yeoman-generator-angular
game-maker
clish
business-intelligence
live-streaming
rest-assured
sqlplus
substring
perfino
openbravo
running-object-table
amazon-cloudtrail
sales
reporting
john-the-ripper
seafile-server
cloudera-manager
restful-architecture
xerces-c
ftp-server
extbase
iscroll
permission-denied
axis
ssi
nonlinear-functions
karabiner
gtk#
mongodb-aggregation
glimpse
gmaps.js
sidewaffle
google-shopping-api
perl-data-structures
scheduledexecutorservice
xcode6.4
okio
jsf-2.3
callouts
raw-sockets
xcode8-beta4
ajaxmin
flipclock
onepage-checkout
http.client
360-degrees
darwin
com0com
erlog
physicsjs
wicket-1.5
zend-mail
tabris
android-2.3-gingerbread
rpg
nachos
zend-search-lucene
air-native-extension
xmi
application-blocks
ctp
grails-2.3
unrealscript
ax
arrow
voice-recording
cakeyframeanimation
prefuse
flymake
wcf-callbacks
drawimage
data-dump
botnet
office-automation
upshot
webresponse
anonymous-types
ccl
3-tier
eai
rendering-engine
account-management

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App