-
Notifications
You must be signed in to change notification settings - Fork 173
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
Crop Tests #4268
Crop Tests #4268
Conversation
update dev from main repo
When I attempt to run the tests, I am getting an error saying "Unable to open image: USER ERROR [LINE] exceeds number of lines in the [FROM] cube." I'm thinking that the line number I am attempting to access from the original test is too big. I tried using both DefaultCube and LargeCube and am getting the same error. To solve this, I wasn't sure if I should change the line numbers in the test, or if I should be using a different cube? |
@robotprogrammer22 The LargeCube fixture is 1000x1000 , but you're passing line 2070 as the start line via "line=2070", "nlines=300" if you want 300 lines, then you'll have to use a starting line <= 700 |
@robotprogrammer22 It looks like there's still a few tests failing, but overall it looks like this is just about finished. Is this something that you could use some support on, or do you want to try finishing it off on your own? |
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.
What you have looks good! It may be worth adding a couple more tests for testing the errors in the crop app.
Also it looks like crop_app_test_tables is failing on Jenkins.
Tests are passing. One note about your recently added tests: I think @amystamile-usgs was referring to testing the exceptions that crop throws, but @amystamile-usgs correct me if I am wrong. |
@kaitlyndlee That's right. Here is an example of a test that checks the exceptions https://github.com/USGS-Astrogeology/ISIS3/blob/aab0e63088046690e6c031881825596c1c2cc380/isis/tests/FunctionalTestsReduce.cpp#L191 |
Thanks. I just added some tests for the exceptions. |
Description
Added tests for the crop app.
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist:
Licensing
This project is mostly composed of free and unencumbered software released into the public domain, and we are unlikely to accept contributions that are not also released into the public domain. Somewhere near the top of each file should have these words: