-
Notifications
You must be signed in to change notification settings - Fork 26
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
Improve Testing for GlassBR #347
Comments
As of commit 682b22f, |
…to derive correct 'actual thickness' value; #347
@palmerst Currently, the parameterized program is as follows in my working directory: Attempting to make the files results in the following error: |
In calcTests.py line 38, you have double parenthesized the TestCalculations constructor arguments -- so you are passing a length 10 tuple instead of 10 arguments. Remove the inner parentheses. |
Commit your changes to the tests and I'll take a look. |
I ended up making some big changes to the testing in d4c013a. The unittest framework does not like it when you redefine the constructor for unit tests. That is what was causing problems. Take a look at testCalculations.py -- it's much simpler now. I moved all of the old tests to the OldTests folder in Python_Simplified |
Update: commits 78fefda...1e9d557 contribute to this issue, since data has been pulled out from most duplicate files (except for files from testReadTable and testInterp). |
Update: |
@palmerst The commit mentioned above made |
Remove the rounding in |
Looks like a lot of really good work was done here, and is close to being 'done'. @niazim3 could you document (your memory of) the state of this work? In a way that someone else could take it over and finish it? |
I'm having difficulty finding the test cases that I'd like to review so I can update this issue in a more maintainable way. Where has the |
@niazim3, the case studies have been moved to the Case Studies repo. This is to have a proper separation of concerns between the case studies and the Drasil implementation. However, it does cause a problem for issues like this. My suggestion is that you create a new issue in the Case Studies repo about this topic, and then close this issue with a copy of the url for the new issue. |
The remainder of this issue will be worked on in the CaseStudies repo. (@smiths I was unsure who to assign the issue to, so I have myself currently assigned. I can continue to work on this issue if it's my task, otherwise the issue can be re-assigned) |
@niazim3, thank you for moving the issue. Yes, you should assign it to yourself. 😄 |
Mentioned in issue #262, there is a lot of duplication that can be reduced from the Testing code for GlassBR. As stated by @palmerst, "each test suite has 5-10 source files which are just complete copies of each other with different hardcoded inputs".
This issue will be used to keep track of changes made in relation to this task.
The text was updated successfully, but these errors were encountered: