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
Hi, this looks interesting, however I suspect that it might be too case-specific to be integrated into the project, I'd love to get more opinions on that one.
What I posted in here is indeed case-specific. But perhaps what I wanted to suggest is in addition to the classes there could also be decorators.
Consider:
@http_sampler(url='http://helloworld')@thread_group(threads=10, duration=60)@html_reporter(directory='output')defmy_test(test_plan):
stats=test_plan.run()
# make assertions
Some logic would determine the hierarchy among the decorators and build a test plan out of them.
Again it is just an idea, but might be more developer friendly.
This is more of a suggestion rather than an issue.
This is how I am defining my custom decorators so I can use them in my unit tests:
When in use the unit tests look a lot cleaner:
I believe you can achieve a much nicer Developer Experience with decorators (you can also chain them)
The text was updated successfully, but these errors were encountered: