artilleryio / artillery

The complete load testing platform. Everything you need for production-grade load tests. Serverless & distributed. Load test with Playwright. Load test HTTP APIs, GraphQL, WebSocket, and more. Use any Node.js module.
https://www.artillery.io
Mozilla Public License 2.0
8.07k stars 512 forks source link

refactor(test): set report and trace file paths to test context #3244

Closed InesNi closed 5 months ago

InesNi commented 5 months ago

Description

There were a few occasions that the publish-metrics trace tests failed. I was not able to reproduce the issue but from the existing logs it seemed as the second test would use the report of the first one. These tests are within a single file and use beforeEach and afterEach to set report and trace file paths. The paths were not set on the test context though, I added them directly on the test context here to make sure each is explicitly using their own paths.

Pre-merge checklist

This is for use by the Artillery team. Please leave this in if you're contributing to Artillery.