We use K6 to run all our functional tests and configuration of our tests are based on this thread
I have found an issue with our build today that there was a TypeError
and build aborted with an exit 0 code and it was marked as success.
ERROR - ERRO[0313] TypeError: Cannot read property 'value' of undefined
I was hoping this type error would have resulted in a non zero exit code but our build was green even though it was exited at that particular error.
data_received........................................................: 2.7 MB 9.2 kB/s
data_sent............................................................: 243 kB 833 B/s
✓ failedTestCases......................................................: 0 0/s
We are adding more assertions statement in the function to tackle this and I was wondering if you have any other tip or suggestion.