Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom test failure messages? #12

Closed
Voileexperiments opened this issue Aug 20, 2019 · 1 comment
Closed

Custom test failure messages? #12

Voileexperiments opened this issue Aug 20, 2019 · 1 comment
Labels
question Further information is requested

Comments

@Voileexperiments
Copy link

Sometimes some test assertions require custom failure messages. Is it supported by the test framework? There are of course always the clunky myjinxin way:

  1. Set one variable to string A if condition passes, else set it to string B
  2. Write a test assertion that compares said variable should equal string A
  3. If test fail, the message would say something along Expected "condition fulfilled", got "did not fulfill condition"

But something cleaner and easier to you would be better.

@nomennescio
Copy link
Collaborator

nomennescio commented Aug 20, 2019

Yes it is supported. See for an example the test code of the framework

@kazk kazk added the question Further information is requested label Aug 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants