Closed staheri14 closed 1 week ago
The changes introduce the ability to select and run specific end-to-end (e2e) benchmark tests in the Celestia project. A new structure and logging mechanism have been implemented to handle multiple tests, providing better modularity and control over the test execution process.
File | Change Summary |
---|---|
test/e2e/benchmark/main.go |
Added functionality for running specific or all tests based on command-line arguments. |
test/e2e/benchmark/throughput.go |
Renamed the test function, updated ChainID , and modified logging output. |
sequenceDiagram
participant User
participant Main as main.go
participant Throughput as throughput.go
participant Logger
User->>Main: Run test with arguments
Main->>Logger: Initialize logger
Main->>Main: Process arguments
alt Specific test
Main->>Throughput: Execute specified test
else All tests
Main->>Main: Loop through all tests
Main->>Throughput: Execute each test
end
Throughput->>Logger: Output test result
Logger-->>User: Display result
Objective | Addressed | Explanation |
---|---|---|
Enable selection and execution of specific e2e bench tests (#3588) | ✅ |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Closes #3588
Now, you can pass the test name as an arument:
And at the end you will see