~jugmac00/lpci:increase-test-coverage

Last commit made on 2021-11-25
Get this branch:
git clone -b increase-test-coverage https://git.launchpad.net/~jugmac00/lpci
Only Jürgen Gmach can upload to this branch. If you are Jürgen Gmach please log in for upload directions.

Branch merges

Branch information

Name:
increase-test-coverage
Repository:
lp:~jugmac00/lpci

Recent commits

5a9fcff... by Jürgen Gmach

gitignore build directory

0d6ad3f... by Jürgen Gmach

Enforce 100% branch coverage

6a7c7a1... by Jürgen Gmach

Ignore coverage temporarily

- in order to get 100% code coverage
- wait until there are better use cases to actually test this code paths

905d789... by Jürgen Gmach

Add temporary tests for emitter states

- emitter state does not get used e.g. in the run command, which means
there is not much output to test yet

- the cli design needs to be changed, as currently e.g. `version` and
`--version` act differently when passing in an emitter state from cli

a8c1245... by Jürgen Gmach

Add test for failing lxd.configure_buildd_image_remote

7ba407a... by Jürgen Gmach

Add missing pipeline entry

ef33926... by Jürgen Gmach

Remove unused parts from FakeLXDInstaller

09bfd55... by Jürgen Gmach

Skip testing for _RealLXDInstaller

The class and its methods are only implemented to work around a bug in
mypy:
https://github.com/python/mypy/issues/5018

975c677... by Jürgen Gmach

Increase test coverage

- Exclude unreachable code from coverage
- Test CommandError's __eq___ method
- Test LPCraftBuilddBaseConfiguration's __eq__ method
- Test instance cannot pull file
- Test replaying logs
- Test keyboard interruption
- LPCraftBuilddBaseConfiguration should be only comparable to same type
- Test handling of unexpected exectptions
- `CommandBaseTestCase.run_command` now also returns `trace` calls

9685923... by Jürgen Gmach

Retrieve version info directly from setup.cfg for building snaps