-
Notifications
You must be signed in to change notification settings - Fork 11
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
Show custom error messages #52
Show custom error messages #52
Conversation
* Add message filter and in-line options update (microsoftly#28) * added ability to filter messages * added in line options modifier * add builtin message filters * add builtin message filters to options/config (microsoftly#30) * v3.1.0 (microsoftly#32) * add builtin message filters * bump version for v3.1.0 * updated docs for publish * added ignoreInternalSaveMessage option * Add internal save ignore option (microsoftly#35) * v3.2.0 * fixed a redundant definition that came from a recursive merge strategy * fix spelling error with ignoreInternalSaveMessage (microsoftly#38) * 3.2.1 * remove typescript notation from docs * forcibly remove docs folder when building typeDocs * 3.2.2 * add adaptive cards (and attachment) support (microsoftly#44) * add adaptiveCardProvider * add adaptivecards package * add adaptive cards implementation * add adaptive cards tests * update docs * include ts-node require * update node version * update mocha version * add yarn to circle config * v3.3.0
This should fix this issue #51 |
Looks good to me. Please add a test to BotTester.spec.ts with the title "Can show custom error messages" and add the test to the README.md documentation and I'll be ready to merge and release an updated package. sidenote: I've changed the base to from master to dev. Once dev is ready for publishing, the docs are recompiled, version number bumped, package is published, then dev is merged into master. |
@microsoftly should I add a tests for each matcher? https://github.com/microsoftly/BotTester/blob/master/src/assertionLibraries/ChaiExpectation.ts#L39-L53 looks like the deep include doesn't use the given message |
@santiagodoldan yes, please explicitly test each method. I think having deep include also have the message could be useful. It shouldn't be too much work to extend it as well. Only one of the new tests needs to be added to the documentation. The rest can be put in the cases not for docs |
First of all, there's already a test file https://github.com/microsoftly/BotTester/blob/master/test/BotTesterFailure.spec.ts that test the error messages, the issue I see there is that Regarding the test file, I was able to test the The only one I can't test is the |
@microsoftly another thing, would you like to move this expectation https://github.com/microsoftly/BotTester/blob/master/src/ExpectedMessage.ts#L50 out of the constructor? because that fails without executing |
cfcfb48
to
932bdad
Compare
@microsoftly regarding what |
Removing the expect out of the constructor is fine. I'm not sure which old message you're referring to, but I'll let you pick your best judgement. I'm fine W/ the PR as is. |
as for https://github.com/microsoftly/BotTester/blob/master/src/ExpectedMessage.ts#L71-L72, it's been a while, but I'm pretty sure that's for ignoring internal save messages that are used to get the session loader to work properly |
About the message, here you have an example of how it looks
If that's ok, let's merge the PR then :) |
great |
No description provided.