r/node • • Jan 13 '20

Node.js CI steps and tools

Post image
312 Upvotes

39 comments sorted by

View all comments

Show parent comments

1

u/yonatannn Jan 14 '20

Why is this different? a browser simulates user actions and approaches some remote servers. Same testing like staging, only over production env. The main difference is that it is meant for monitoring.

The domain of 'testing in production' gains a lot of momentum recently

2

u/kbradl16 Jan 14 '20

I disagree that this provides much value and is way less valuable than having logs/logging, analytics, network monitoring, database reports which would be real monitoring metrics. All of these could alert you much faster than your production e2e test, do you not have traffic to the app already? Every consumer/user should be your data points and monitoring.

How are you asserting anything valuable? Do you have a e2e test for every flow? What if you an alternate branch breaks, how are you monitoring that? There’s a lot of overhead with e2e testing especially if you have separate e2e frameworks for running continuously.