-
Notifications
You must be signed in to change notification settings - Fork 57
Add tests for all applications and limit mechanics explorer opening. #7
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
Conversation
|
Overall I think this PR looks good. Each application has its own test in the folder that prevents the previously discussed file copying and directory changes. My two suggestions are to:
I was having trouble pushing this to your branch, but the line I placed before "Create a pull request..." is: |
|
@akeeste, thanks for the feedback. I'll see if I can get some automated skipping set up to check for MoorDyn, if it's required for the tests. I'd rather avoid trying to group the tests and adding flags, particularly if tests that use MoorDyn can be placed anywhere. Did you try and push directly to my branch? That won't work because I've not granted you access rights to my fork. I'll add your edits to the README file. In the future you can always add a PR against my fork, like I did for the ci_restructure branch on your WEC-Sim fork, otherwise I can grant you push rights to my WEC-Sim_Applications fork - depends on the situation. |
|
OK, so I don't understand what is going on with the Desalination case. The error it chucks is: What is |
|
@H0R5E agreed, it would be better to avoid the flags all together. Right now I believe only a specific version of MoorDyn works with WEC-Sim. Yi-Hsiang is working with the MoorDyn team to get that resolved in the next month. The desalination case additionally requires the Simscape fluids toolbox, which is probably why its failing. I think until this is all automated/scheduled, the tests can still move here given the team's awareness that the MoorDyn/Desal ones may fail. We can skip them on the schedule if needed until the dependencies are addressed. |
|
Waiting on WEC-Sim/WEC-Sim#632 |
|
@H0R5E WEC-Sim/WEC-Sim#632 is merged. |
|
This is now ready for review Aside: @kmruehl can you give me admin rights on this repo? I'll need it to set up the CI. Thanks. |
akeeste
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No more suggestions that the current improvements already made on this PR. It will be very helpful to have merged. My only comment is that the WECCCOMP case explorer is still turned on. Is there any reason to add the test option parameter like we have in wecSimTest?
|
@akeeste, thanks. I have added a test skip for WEC-Sim/WEC-Sim#674 and I have switched off the explorer for WECCCOMP case. Everything passes for me now, with MoorDyn installed. Regarding the test flags, I think the way I have it set up here is easier for this repository as you can just point the function at the directory you want to test. So like: will run the tests in the End_Stops directory. We don't need to keep adding flags if people add new directories doing it this way. I'm going to merge this now and start testing the CI. |
This PR is an accompaniment to WEC-Sim/WEC-Sim#619 and WEC-Sim/WEC-Sim#620
Tests have been added to each level where a bemio call is made and a script to call them globally has also been added at the top level called
wecSimAppTest.I did also reduce the number of times that the mechanics explorer is opened, by default. Some way to programmatically stop this in tests would be useful.
Some instructions regarding running the tests (i.e. needed WEC-Sim and MoorDyn) have been added.
TODO:
Add assumed failure for desalination test