Skip to content

Conversation

iljakorneckis
Copy link
Contributor

Closes #648

I'm a little unsure about naming of the sample methods, so welcome any feedback and will make all required changes asap.


I confirm that I have read the Contributor Agreements v1.0, agree to be bound on them and confirm that my contribution is compliant.

@codecov
Copy link

codecov bot commented Oct 29, 2021

Codecov Report

Merging #1037 (bee7592) into main (2a4c6cb) will not change coverage.
The diff coverage is n/a.

❗ Current head bee7592 differs from pull request most recent head 9eaaec0. Consider uploading reports for the commit 9eaaec0 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##               main    #1037    +/-   ##
==========================================
  Coverage     90.53%   90.53%            
==========================================
  Files           441      441            
  Lines          4629     4629            
  Branches        221      221            
==========================================
  Hits           4191     4191            
  Misses          389      389            
  Partials         49       49            
Flag Coverage Δ
bbc ∅ <ø> (?)
bc 84.94% <ø> (ø)
current 87.01% <ø> (ø)
current_windows 86.15% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...tteli/atrium/api/fluent/en_GB/featureExtractors.kt 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 2a4c6cb...9eaaec0. Read the comment docs.

@iljakorneckis
Copy link
Contributor Author

Hey @robstoll, can I bug you for a review?

Copy link
Owner

@robstoll robstoll left a comment

Choose a reason for hiding this comment

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

@iljakorneckis I am sorry, it looks like I forgot to press the submit button (I actually reviewed the same day you submitted 🤦‍♂️ )


fails {
expect(person)
.feature(Person::name)
Copy link
Owner

Choose a reason for hiding this comment

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

always mention when the subject changes its type please

// https://github.com/robstoll/atrium#define-single-expectations-or-expectation-groups

toStartWith("Kevin") // fails
toEndWith("Bacon") // still evaluated, use `.feature.` if you want fail fast behaviour
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
toEndWith("Bacon") // still evaluated, use `.feature.` if you want fail fast behaviour
toEndWith("Bacon") // still evaluated, use `.feature.` if you want fail fast behaviour

@iljakorneckis
Copy link
Contributor Author

All good, @robstoll I'll make the changes asap and re-submit

iljakorneckis and others added 4 commits November 5, 2021 21:36
…in/ch/tutteli/atrium/api/fluent/en_GB/samples/FeatureExtractorSamples.kt
…in/ch/tutteli/atrium/api/fluent/en_GB/samples/FeatureExtractorSamples.kt
…in/ch/tutteli/atrium/api/fluent/en_GB/samples/FeatureExtractorSamples.kt
@robstoll robstoll changed the base branch from main to samples-feature-extractors November 5, 2021 20:46
@robstoll robstoll merged commit e602f14 into robstoll:samples-feature-extractors Nov 5, 2021
@robstoll
Copy link
Owner

robstoll commented Nov 5, 2021

@iljakorneckis thanks for the changes and the contribution as such 🎉

@iljakorneckis
Copy link
Contributor Author

Uh, @robstoll, I haven't done all the changes requested in the review. Sorry if I was unclear, when I resolved one of them. Should I open a separate PR for the rest?

@robstoll
Copy link
Owner

robstoll commented Nov 5, 2021

@iljakorneckis ah sorry, I figured you don't have time for the rest. I adjusted the last bits myself.

@robstoll
Copy link
Owner

robstoll commented Nov 5, 2021

@iljakorneckis If you should have more time available, then don't hesitate to take a look at other issues 🙂

@iljakorneckis
Copy link
Contributor Author

@robstoll Hah, thank you for tackling the rest! I will definitely look at other issues that I can take. Learned a lot about multi-platform Kotlin from this project and started using it myself. 👍

@iljakorneckis iljakorneckis deleted the 648-add_samples_for_featureAssertions_of_api-fluent branch November 5, 2021 21:24
@robstoll
Copy link
Owner

robstoll commented Nov 5, 2021

@iljakorneckis just be aware of that this project actually uses the old multi-platform plugins (we need to update to the new soonish). If you are interested about the new plugins then take a look at the following issue: #744

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.

add samples for featureAssertions of api-fluent
2 participants