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

Fix #2 - Allow to get other metrics #4

Merged
merged 14 commits into from
Sep 25, 2020

Conversation

emibcn
Copy link
Contributor

@emibcn emibcn commented Sep 8, 2020

Fixes #2

@johanvanhelden
Copy link
Owner

Looks good! I'll try to test this ASAP in the coming days.

Ideally I would like to have some sort of automatic testing set up. Since it's quite time consuming to test this action manually 🤔

@johanvanhelden
Copy link
Owner

@emibcn this PR needs some refactoring due to the new changes. Could you please also add tests for this new feature? Thanks!

….yml`, parse new argument, test, documentation.
….yml`, parse new argument, test, documentation. - v2 - Fix typo (missing `}`)
….yml`, parse new argument, test, documentation. - v3 - Make `$metricToParse` a real optional argument wich defaults to `elements``)
….yml`, parse new argument, test, documentation. - v3 - Fix indentation
….yml`, parse new argument, test, documentation. - v3 - Make `$metricToParse` a real optional argument wich defaults to `elements``), using only `$argv` to ensure tests work
….yml`, parse new argument, test, documentation. - v3 - Fix indentation and "tables"
….yml`, parse new argument, test, documentation. - v3 - Fix indentation and "tables" - v2
Copy link
Owner

@johanvanhelden johanvanhelden left a comment

Choose a reason for hiding this comment

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

Can you also add a MetricTest feature test that proves it works?

src/Helpers/Coverage.php Outdated Show resolved Hide resolved
src/test-coverage-checker.php Outdated Show resolved Hide resolved
action.yml Outdated Show resolved Hide resolved
@emibcn
Copy link
Contributor Author

emibcn commented Sep 25, 2020

Can you also add a MetricTest feature test that proves it works?

Isn't that covered here?

@johanvanhelden
Copy link
Owner

Can you also add a MetricTest feature test that proves it works?

Isn't that covered here?

That is a unit test. So it tests the PHP code directly in the scope of the helper.

Additionally, I would like to see it as a feature tests as well. So we also know it works in the context of the entire script being executed.

So during the unit test we will know if the engine itself works, but I am also interested in knowing that the car itself will still run with that engine installed to make sure the engine is connected properly and is compatible with the car and the car actually moves forward.

Did I explain that properly?

@emibcn
Copy link
Contributor Author

emibcn commented Sep 25, 2020

How about now?

PS: Sorry about indentation commits: I don't use PHP since years ago and I don't have proper tooling installed.

@emibcn
Copy link
Contributor Author

emibcn commented Sep 25, 2020

Did I explain that properly?

Yeah, very didactic ;)

Copy link
Owner

@johanvanhelden johanvanhelden left a comment

Choose a reason for hiding this comment

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

Perfect, thank you very much!

@johanvanhelden johanvanhelden merged commit fb80672 into johanvanhelden:master Sep 25, 2020
@emibcn emibcn deleted the 2-other-metrics branch September 26, 2020 10:45
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.

Allow to get other metrics
2 participants