vegeta-server icon indicating copy to clipboard operation
vegeta-server copied to clipboard

Add unit tests across backend package

Open nitishm opened this issue 6 years ago • 4 comments

Need to add unit tests for the backend server to test all the attack options plus all the additional logic in the internal/vegeta/attack.go, internal/vegeta/report.go and internal/vegeta/store.go among the other files and packages.

nitishm avatar Jan 22 '19 03:01 nitishm

@nitishm I'll try to work on this issue.

andrysds avatar Feb 03 '19 16:02 andrysds

Awesome !!!

nitishm avatar Feb 03 '19 17:02 nitishm

@andrysds Heads up. I have changed the entire implementation from go-swagger to gin-gonic. Most, if not all, of the backend code has been refactored. With the new structure it should be much easier to add dependency mocks for unit tests.

Let me know if you are still interested in working this issue.

nitishm avatar Feb 11 '19 04:02 nitishm

NOTE: Unit tests should use mockery/testify to create mock interface implementations.

nitishm avatar Feb 17 '19 01:02 nitishm