Fun fact an alternate way to set the test case name -- instead of using setName in the test -- is to put the name of the test as the key value in the data provider. For example:
You're absolutely right, I didn't realize that before and also didn't notice it when writing up the code samples 🤦♂️ I've updated the post to reflect this. Thanks!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Fun fact an alternate way to set the test case name -- instead of using
setName
in the test -- is to put the name of the test as the key value in the data provider. For example:Failing tests should output 'Fresh Session' instead of 'data set #0'
You're absolutely right, I didn't realize that before and also didn't notice it when writing up the code samples 🤦♂️ I've updated the post to reflect this. Thanks!