#10 Unit Tests.

Open
opened 3 years ago by Russtopia · 1 comments

Unit tests would be nice. Features are expanding to the point where manual testing is becoming tedious. [Yeah yeah, I should have been doing them while implementing basic functionality. -R.]

Mitigation: Sanity and connection tests are being done via CI.

Unit tests would be nice. Features are expanding to the point where manual testing is becoming tedious. [Yeah yeah, I should have been doing them while implementing basic functionality. -R.] Mitigation: Sanity and connection tests are being done via CI.
Russtopia commented 2 years ago
Owner

2020-02-19 Update

  • unit tests for auth.go, session.go have been added achieving ~85% coverage
  • unit tests for xsnet/chan.go are pending
  • unit tests for xsnet/net.go being explored but may be complex due to external cipher behaviour and possible requirement to mock entire KEX data exchange via loopback in mocks; might not be worth it as integration or smoke tests might be the best way to fully exercise both cipher and protocol behaviour. TBD.
  • Other components and client/server... probably best verified by smoke tests

TODO: make targets for above, currently done in bacillus CI scripts

2020-02-19 Update * unit tests for auth.go, session.go have been added achieving ~85% coverage * unit tests for xsnet/chan.go are pending * unit tests for xsnet/net.go being explored but may be complex due to external cipher behaviour and possible requirement to mock entire KEX data exchange via loopback in mocks; might not be worth it as integration or smoke tests might be the best way to fully exercise both cipher and protocol behaviour. TBD. * Other components and client/server... probably best verified by smoke tests TODO: make targets for above, currently done in <a href="https://gogs.blitter.com/Russtopia/bacillus/src/master/README.md">bacillus CI</a> scripts
Sign in to join this conversation.
Loading...
Cancel
Save
There is no content yet.