Gum-Joe / 2Keys

A easy to setup second keyboard, designed for everyone.
GNU General Public License v3.0
11 stars 4 forks source link

Add tests for OOBE, project and daemon commands #88

Closed Gum-Joe closed 4 years ago

Gum-Joe commented 4 years ago

Adds tests for OOBE, project creation and daemon file creation commands.

All that left to do now is to use a VM to test setting an IPv4 address.

Gum-Joe commented 4 years ago

Task linked: CU-7cmpt6 Tests - OOBE, Daemon and Project

codecov[bot] commented 4 years ago

Codecov Report

Merging #88 into v1 will increase coverage by 13.12%. The diff coverage is 60.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##               v1      #88       +/-   ##
===========================================
+ Coverage   80.32%   93.44%   +13.12%     
===========================================
  Files          40       50       +10     
  Lines        1306     1603      +297     
  Branches      204      230       +26     
===========================================
+ Hits         1049     1498      +449     
+ Misses        257      105      -152     
Impacted Files Coverage Δ
...s/@twokeys/common-hi/src/common/command-factory.ts 100.00% <ø> (ø)
...ages/@twokeys/common-hi/src/setup/commands/oobe.ts 91.66% <ø> (+91.66%) :arrow_up:
...s/@twokeys/common-hi/src/setup/commands/project.ts 100.00% <ø> (+100.00%) :arrow_up:
...es/@twokeys/common-hi/src/setup/commands/daemon.ts 72.00% <25.00%> (+72.00%) :arrow_up:
packages/@twokeys/core/src/prompts.ts 97.67% <85.71%> (-2.33%) :arrow_down:
packages/@twokeys/addons/src/registry.ts 90.05% <100.00%> (+0.05%) :arrow_up:
...ckages/@twokeys/common-hi/src/setup/util/native.ts 100.00% <100.00%> (ø)
...kages/@twokeys/common-hi/src/setup/util/setIPv4.ts 91.07% <100.00%> (+91.07%) :arrow_up:
...wokeys/common-hi/src/assets/setup/daemon/daemon.js
packages/@twokeys/server/src/util/constants.ts 100.00% <0.00%> (ø)
... and 18 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 799792c...c387172. Read the comment docs.