You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to add a description to a test? Cause I ended up adding the description into the test's name and it's hard to read it when I use chaplain interactively.
What is your view on it? Is there another way of doing that? Hm .. now that I'm thinking about it I didn't try adding the description into the test name .. oh .. it seems to be working .. ok cool! I can do with that.
Sorry for posting this .. I thought that since I wrote it up to here then it might be good for you to know that I faced this issue. Feel free to mark it as resolved.
The text was updated successfully, but these errors were encountered:
Will think this through. For now, there is a test name just so you have some place to put a description in. For the future, maybe it will make more sense to provide mocha-like contexts for those things, e.g.:
context('/api/drinks',()=>{test('when drink found',{...})test('when there is no such drink',{...})test('when there is no such venue',{...})test('when venue does not serve this drink',{...})})
Food for thought. Keeping this open for discussion and more thoughts on the subject - I'm basically open to the idea that the current system might not be the best for what Chaplain wants to do.
So, I put some thought into it, and this is definitely something that I'd like to do before 0.4.0 (the "public" release when I start yelling loudly to people about chaplain ;)).
Letting you group the tests (probably by endpoint, but whatever you want) will come in handy for the "sequential" tests coming in 0.5.0 too, and will give people a place to provide shared configuration for a group of tests (like a common header to be sent for all tests).
Hi there,
Is it possible to add a description to a test? Cause I ended up adding the description into the test's name and it's hard to read it when I use chaplain interactively.
Here is what I ended up doing:
`
suite('drinks', function () {
});`
Here is what I would like to be doing:
`
suite('drinks', function () {
});
`
or it could be (optionally) written more explicitly like this:
test({ name: 'get_drinks', description: 'venueId url param is missing', request: {url: '/api/drinks/get_drinks'} });
What is your view on it? Is there another way of doing that? Hm .. now that I'm thinking about it I didn't try adding the description into the test name .. oh .. it seems to be working .. ok cool! I can do with that.
Sorry for posting this .. I thought that since I wrote it up to here then it might be good for you to know that I faced this issue. Feel free to mark it as resolved.
The text was updated successfully, but these errors were encountered: