Open Strech opened 2 years ago
Another way to rearrange files around testing is to rename bin
folder into test
and move there testing folder too (inspiration https://github.com/kubernetes-sigs/descheduler/tree/master/test)
=== before
toxiptoxy/
├── bin/
│ ├── e2e
│ └── release_test
├── testing/
│ ├── benchmark_test.go
│ └── endpoint.go
...
=== after
toxiptoxy/
├── test/
│ ├── e2e/
│ │ ├── benchmark_test.go
│ │ └── endpoint.go
│ ├── run-e2e-tests
│ └── run-release-tests
...
Agreed structure for testing
toxiptoxy/
├── scripts/
│ ├── test-e2e
│ └── test-release
├── test/
│ ├── e2e/
│ │ ├── benchmark_test.go
│ │ └── endpoint.go
...
To follow best practices and allow us to have a better ability to test and develop new features, I would like to open discussion around packages reorganisation
Also I think it makes sense to restructure
testing
folder, since one of the filesendpoint
is used inMakefile
to rune2e
(maybe we just should rename it to bee2e/main.go
) andbenchmark_test.go
is used only for benchmarking also in e2e tests.