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

tests: rm "test_" prefix + smaller zenodo file sizes #799

Merged
merged 1 commit into from
Jun 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,36 +49,36 @@ jobs:
name: Testing MintPy Python Modules
command: |
export PATH=${CONDA_PREFIX}/bin:${PATH}
${MINTPY_HOME}/tests/test_asc_desc2horz_vert.py
${MINTPY_HOME}/tests/asc_desc2horz_vert.py
${MINTPY_HOME}/tests/objects/ionex.py

- run:
name: Testing MintPy on Example Dataset 1/4 - FernandinaSenDT128 (ISCE/topsStack)
command: |
export PATH=${CONDA_PREFIX}/bin:${PATH}
mkdir -p ${HOME}/data
${MINTPY_HOME}/tests/test_smallbaselineApp.py --dir ${HOME}/data --dset FernandinaSenDT128
${MINTPY_HOME}/tests/smallbaselineApp.py --dir ${HOME}/data --dset FernandinaSenDT128

- run:
name: Testing MintPy on Example Dataset 2/4 - SanFranSenDT42 (ARIA)
command: |
export PATH=${CONDA_PREFIX}/bin:${PATH}
mkdir -p ${HOME}/data
${MINTPY_HOME}/tests/test_smallbaselineApp.py --dir ${HOME}/data --dset SanFranSenDT42
${MINTPY_HOME}/tests/smallbaselineApp.py --dir ${HOME}/data --dset SanFranSenDT42

- run:
name: Testing MintPy on Example Dataset 3/4 - WellsEnvD2T399 (Gamma)
command: |
export PATH=${CONDA_PREFIX}/bin:${PATH}
mkdir -p ${HOME}/data
${MINTPY_HOME}/tests/test_smallbaselineApp.py --dir ${HOME}/data --dset WellsEnvD2T399
${MINTPY_HOME}/tests/smallbaselineApp.py --dir ${HOME}/data --dset WellsEnvD2T399

- run:
name: Testing MintPy on Example Dataset 4/4 - WCapeSenAT29 (SNAP)
command: |
export PATH=${CONDA_PREFIX}/bin:${PATH}
mkdir -p ${HOME}/data
${MINTPY_HOME}/tests/test_smallbaselineApp.py --dir ${HOME}/data --dset WCapeSenAT29
${MINTPY_HOME}/tests/smallbaselineApp.py --dir ${HOME}/data --dset WCapeSenAT29

workflows:
version: 2
Expand Down
4 changes: 2 additions & 2 deletions docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ Some things that will increase the chance that your pull request is accepted qui

## Testing ##

It's a good idea to test any changes or bugs you have fixed, in the feature branch locally, before issuing/submitting the pull request. We realize that we don't have a complete testing system in place yet (maybe you can contribute this!), except for an overall testing script `test_smallbaselineApp.py`:
It's a good idea to test any changes or bugs you have fixed, in the feature branch locally, before issuing/submitting the pull request. We realize that we don't have a complete testing system in place yet (maybe you can contribute this!), except for an overall testing script for `smallbaselineApp.py`:

```
${MINTPY_HOME}/tests/test_smallbaselineApp.py
${MINTPY_HOME}/tests/smallbaselineApp.py
```

It takes about 15 mins to finish.
Expand Down
File renamed without changes.
20 changes: 10 additions & 10 deletions tests/test_smallbaselineApp.py → tests/smallbaselineApp.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
}

URL_LIST = [
'https://zenodo.org/record/5498198/files/FernandinaSenDT128.tar.xz',
'https://zenodo.org/record/4320005/files/SanFranSenDT42.tar.xz',
'https://zenodo.org/record/3952950/files/WellsEnvD2T399.tar.xz',
'https://zenodo.org/record/5502403/files/RidgecrestSenDT71.tar.xz',
'https://zenodo.org/record/4318134/files/WCapeSenAT29.tar.xz',
'https://zenodo.org/record/3952917/files/KujuAlosAT422F650.tar.xz',
'https://zenodo.org/record/5498198/files/FernandinaSenDT128.tar.xz', # 280 MB
'https://zenodo.org/record/6662079/files/SanFranSenDT42.tar.xz', # 280 MB
'https://zenodo.org/record/3952950/files/WellsEnvD2T399.tar.xz', # 280 MB
'https://zenodo.org/record/5502403/files/RidgecrestSenDT71.tar.xz', # 480 MB
'https://zenodo.org/record/6661536/files/WCapeSenAT29.tar.xz', # 240 MB
'https://zenodo.org/record/3952917/files/KujuAlosAT422F650.tar.xz', # 230 MB
]

PROJ_NAMES = [os.path.basename(url).split('.tar.xz')[0] for url in URL_LIST]
Expand All @@ -48,10 +48,10 @@
"""

EXAMPLE = """example:
test_smallbaselineApp.py
test_smallbaselineApp.py --dir ~/test
test_smallbaselineApp.py --dset KujuAlosAT422F650
test_smallbaselineApp.py --nofresh
$MINTPY_HOME/tests/smallbaselineApp.py
$MINTPY_HOME/tests/smallbaselineApp.py --dir ~/test
$MINTPY_HOME/tests/smallbaselineApp.py --dset KujuAlosAT422F650
$MINTPY_HOME/tests/smallbaselineApp.py --nofresh
"""

def create_parser():
Expand Down