minitest-hyper icon indicating copy to clipboard operation
minitest-hyper copied to clipboard

Test data used to validate the test

Open Hashamshaik opened this issue 8 years ago • 2 comments

It is good to add the test data used to validate the scenario on either pass/fail. for example user name and password used to login to the app. May be you can specify an object to use in the tests to add custom message(test data) to the report by the user.

Hashamshaik avatar Feb 28 '16 05:02 Hashamshaik

I'm not too sure what I understand by "add the test data". Are you referring to a more detailed, more Minitest-y description of the error? An error message would only be shown on failure, so how would that help with passing tests?

chriskottom avatar Feb 29 '16 06:02 chriskottom

Hi Chris,

I was referring to an option to write something to the report (optional) even when the Testcase is passed.

As example, if my testcase Login with different accounts passed, how do I confirm my Manager that which users were used to login? So if I can write some custom message that userA, UserB, userC login was success then this will give the report viewer (Managers) that the so and so users were used rather looking into the data.yml files.

Hope I'm clear.

Thanks, Hasham

On Sun, Feb 28, 2016 at 10:12 PM, Chris Kottom [email protected] wrote:

I'm not too sure what I understand by "add the test data". Are you referring to a more detailed, more Minitest-y description of the error? An error message would only be shown on failure, so how would that help with passing tests?

— Reply to this email directly or view it on GitHub https://github.com/chriskottom/minitest-hyper/issues/11#issuecomment-190059684 .

Hashamshaik avatar Mar 01 '16 05:03 Hashamshaik