#rest #json #test #api #unit-testing

app rust_rest_test

An executable that can be used to run "unit tests" on a rust api

2 releases

0.1.1 Apr 22, 2019
0.1.0 Apr 22, 2019

#618 in Testing

MIT license

56KB
1.5K SLoC

Rust Rest Test

Four-day project used for personal project testing.

Error handling is bad. Not efficient. Maybe not useful at all.

Missing/Wrong

  • Code needs to be refactored
    • Repeated code in all parsers
    • Token trait is not needed
    • Error handling is awful, especially in parsers
  • When there are Expectations on empty responses an error should be shown
  • Host and test directory should be configured/passed as parameter
  • Code should be documented
  • More Json testers must be implemented

There is also a lot of other problems that I've not written down but exist in the project.

Dependencies

~10–20MB
~291K SLoC