Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: 💍 Add tests for core #29

Merged
merged 2 commits into from
Jun 7, 2020
Merged

test: 💍 Add tests for core #29

merged 2 commits into from
Jun 7, 2020

Conversation

MaethorNaur
Copy link
Collaborator

Closes #4

@codecov
Copy link

codecov bot commented Jun 5, 2020

Codecov Report

Merging #29 into master will increase coverage by 6.13%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #29      +/-   ##
==========================================
+ Coverage   51.04%   57.18%   +6.13%     
==========================================
  Files          30       30              
  Lines         382      383       +1     
  Branches        9        6       -3     
==========================================
+ Hits          195      219      +24     
+ Misses        187      164      -23     
Impacted Files Coverage Δ
core/src/main/scala/restui/Configuration.scala 100.00% <100.00%> (+100.00%) ⬆️
...ore/src/main/scala/restui/models/ContentType.scala 100.00% <100.00%> (ø)
core/src/main/scala/restui/models/Event.scala 100.00% <0.00%> (+100.00%) ⬆️
.../main/scala/restui/providers/ProvidersLoader.scala 100.00% <0.00%> (+100.00%) ⬆️

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 9372c77...61e1b52. Read the comment docs.

@MaethorNaur MaethorNaur self-assigned this Jun 5, 2020
@MaethorNaur MaethorNaur merged commit 0503d01 into master Jun 7, 2020
@MaethorNaur MaethorNaur deleted the 4-core-test branch June 7, 2020 22:15
@MaethorNaur MaethorNaur restored the 4-core-test branch June 7, 2020 22:17
core/src/test/resources/application.conf Show resolved Hide resolved
("test.yaml", ContentType.Yaml),
("test.yml", ContentType.Yaml),
("test.json", ContentType.Json),
("test.txt", ContentType.Plain)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

edge cases ? and what about if reads something else ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are 3 types:

  • Yaml: yaml,yml
  • Json: json
  • Others: whatever

("event", "json"),
(Event.ServiceUp("id", "test", Map("key" -> "value")), """{"event":"serviceUp","id":"id","name":"test","metadata":{"key":"value"}}"""),
(Event.ServiceDown("id"), """{"event":"serviceDown","id":"id"}"""),
(List(Event.ServiceUp("id", "test", Map("key" -> "value"))),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say list doesnt have to belog in this set and maybe create another table with list of service up and service down and mixture of both

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement tests
2 participants