Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Error Running Benchmarks: No Test Files Found #1

Open
sarakhosrozadeh opened this issue Jun 14, 2024 · 3 comments
Open

Error Running Benchmarks: No Test Files Found #1

sarakhosrozadeh opened this issue Jun 14, 2024 · 3 comments

Comments

@sarakhosrozadeh
Copy link

I am trying to benchmark the Coraza project following the guide provided in the Coraza benchmark documentation. When I run the benchmark command, I encounter an error stating that there are no test files.

To Reproduce
Steps to reproduce the behavior:

Clone the repository: git clone https://github.com/jptosso/coraza-benchmarks
Navigate to the repository directory: cd coraza-benchmarks
Run the benchmark command: go test -bench=. ./...

Expected behavior
The benchmarks should run without errors.

Actual behavior
The following error is displayed:

bash

? github.com/jptosso/coraza-benchmarks [no test files]

Desktop:

OS: Kali Linux
Go version: go1.21.7

I believe the issue is that there are no test files in the repository. Could you please provide guidance on what kind of test files are required to successfully run the benchmarks? Any examples or additional steps would be greatly appreciated.

Thank you for your support and for developing such a valuable tool.

@jcchavezs
Copy link
Member

jcchavezs commented Jun 14, 2024 via email

@fzipi
Copy link
Member

fzipi commented Jun 14, 2024

Yeah, agreed. I think having this is valuable information, but we need to figure it out if we have the bandwidth for updating...

@s3rj1k
Copy link
Contributor

s3rj1k commented Jul 2, 2024

@jcchavezs Can you please take a look at this PR
#2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants