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

pp/#646-convert-groovy-tests-to-scalatest #773

Open
wants to merge 28 commits into
base: dev
Choose a base branch
from

Conversation

pierrepetersmeier
Copy link
Contributor

WecModel convert from groovy to scala.

This PR is related to Issue #646

@pierrepetersmeier pierrepetersmeier linked an issue Mar 18, 2024 that may be closed by this pull request
@pierrepetersmeier pierrepetersmeier self-assigned this Mar 18, 2024
@danielfeismann danielfeismann added the test Issues related to (unit) tests label Apr 4, 2024
@danielfeismann danielfeismann added this to the Version 4.0 milestone Apr 4, 2024
@pierrepetersmeier
Copy link
Contributor Author

Hey @danielfeismann, i don't know how to proceed with SonarQube and "TOLERANCE" – should it be written in all caps like that? Furthermore, is it okay to make the functions public in the WecModel? Groovy was able to access without error, but Scala tells me that it is unacceptable to access the function if it is private.

Comment on lines +136 to +138
math.abs(
result.toWatts - expectedPower.toWatts
) should be < powerTolerance.toWatts
Copy link
Member

Choose a reason for hiding this comment

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

You can remove the .toWatts here. In combination with shouldBe approximate this should be compared correct in value and unit.

@danielfeismann
Copy link
Member

!test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Issues related to (unit) tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Convert groovy tests to ScalaTest, remove groovy
2 participants