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
elasticsearch
events
firebase
automapper
tomcat
freeradius
yii
xcode8.1
hid
material-components
hyperledger
fedora
yahoo
lda
lc3
nexus3
sap-fiori
spring-amqp
jquery-select2-4
rest-assured
pygobject
office-ui-fabric
significance
data-type-conversion
stackexchange.redis
candlestick-chart
cell
jstree
managed-c++
router
list-comprehension
sap-lumira
bitbake
social-networking
nsmutablearray
amazon-kms
orchardcms-1.8
ms-dos
recovery
assert
game-center
uipickerview
newtons-method
vungle-ads
dbcc
virtual-memory
latexml
julius-speech
gcal
webvtt
asp.net-web-api-routing
popen
glimpse
openerp-6
controllers
ipywidgets
xcode6.4
okio
tablespace
nsrunloop
system.net.mail
fragmentstatepageradapter
highlighting
maximize
frame-grab
mathnet
verisign
okta-api
certificate-authority
ruby-on-rails-4.1
openshift-cartridge
ora-04091
screen-orientation
css-paged-media
espresso
360-degrees
modern.ie
clarion
nanomsg
adhoc-polymorphism
window-resize
nesper
webautomation
code-complexity
zend-search-lucene
bittorrent-sync
pageviews
jack
strdup
lru
dynamic-rdlc-generation
axacropdf
viewpagerindicator
coordinate
word-frequency
dropshadow
motodev-studio
haiku
radscheduler
representation
startupscript
bass
android-input-method
getimagesize
sqlsitemapprovider
ning
isapi-redirect

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App