2
Using chai's `assert` API
Source: Kong/insomnia#4740 · opened by @PartyLich
After a bit of looking around in [source]( I realized I could just manually expose [chai's assert api]( and that works adequately. It's a little inconvenient to have to do it for every single test, but still preferable to the BDD API that is exposed by default.
eg
Would it make sense to expose assert by default (or provide an option in the gui - assuming one doesn't already exist, as I could find no indication of it in the docs) for those of us who prefer it?
I didn't find any other issues or discussion around it, so I suppose I'm in a weird minority. It nonetheless seems (from my very limited exploration) like a trivial amount of work to add that functionality. Aside from just personal preference, using the assert style keeps my insomnia tests in line with the test suites of backends in (for example) go or rust, whose built in test facilities do not utilize BDD.
eg
Would it make sense to expose assert by default (or provide an option in the gui - assuming one doesn't already exist, as I could find no indication of it in the docs) for those of us who prefer it?
I didn't find any other issues or discussion around it, so I suppose I'm in a weird minority. It nonetheless seems (from my very limited exploration) like a trivial amount of work to add that functionality. Aside from just personal preference, using the assert style keeps my insomnia tests in line with the test suites of backends in (for example) go or rust, whose built in test facilities do not utilize BDD.
No pledges yet. Be the first to back this.
Comments
Similar requests
Git Sync: allow to configure self signed CA certs
3 votes · 0 comments
Run a script to parse and build xml before and after a request
1 vote · 0 comments
Right Click Set Environment Variables
2 votes · 0 comments
Ability to add folders in test suite
2 votes · 0 comments
Test should have ability to extracting data from last responses and chaining requests
2 votes · 0 comments
No comments yet.