moleculer-go / moleculer

🚀 Progressive microservices framework for Go - based and compatible with https://github.com/moleculerjs/moleculer
MIT License
144 stars 27 forks source link

Feat/moleculerjs #59

Closed pentateu closed 5 years ago

pentateu commented 5 years ago

Moleculer JS compatibility - based #56

Tests Harness

Starts a moleculer JS broker and a moleculer Go broker. Checks registry and auto discovery, calls, events and error handling.

Repo: https://github.com/moleculer-go/compatibility/

To execute the tests:

cd <GO_PATH>/src/github.com/moleculer-go/compatibility/moleculerjs
# install Moleculer JS, just need to be done once
npm install
# execute the go test suite, it will start moleculer JS and stop at the end.
go test
codecov[bot] commented 5 years ago

Codecov Report

Merging #59 into develop will decrease coverage by 2.27%. The diff coverage is 36.5%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop      #59      +/-   ##
===========================================
- Coverage    62.02%   59.75%   -2.28%     
===========================================
  Files           23       23              
  Lines         3716     3881     +165     
===========================================
+ Hits          2305     2319      +14     
- Misses        1299     1441     +142     
- Partials       112      121       +9
Impacted Files Coverage Δ
transit/nats/nats.go 89.47% <ø> (-0.14%) :arrow_down:
metrics/metrics.go 63.63% <100%> (ø) :arrow_up:
registry/nodeCatalog.go 91.3% <100%> (+2.17%) :arrow_up:
broker/broker.go 60.7% <100%> (ø) :arrow_up:
service/service.go 68% <17.39%> (-0.42%) :arrow_down:
registry/nodeService.go 51.86% <3.36%> (-40.24%) :arrow_down:
registry/actionCatalog.go 65.76% <41.66%> (+5.23%) :arrow_up:
transit/pubsub/pubsub.go 8.81% <7.5%> (-0.11%) :arrow_down:
context/contextFactory.go 88.48% <71.05%> (-5.64%) :arrow_down:
registry/serviceCatalog.go 80.82% <75%> (-0.39%) :arrow_down:
... and 8 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 819c642...e307e42. Read the comment docs.