MHKiT-Software / MHKiT-MATLAB

MHKiT-MATLAB provides the marine renewable energy (MRE) community tools for data processing, visualization, quality control, resource assessment, and device performance.
https://mhkit-software.github.io/MHKiT/
BSD 3-Clause "New" or "Revised" License
15 stars 23 forks source link

RFC: Fix Unit Tests #108

Closed simmsa closed 5 months ago

simmsa commented 7 months ago

Status

Summary of Changes

Detail of Changes

This PR

Actions/Workflow

Tests

Fixed Tests

This PR fixes or adds the following tests:

Added Tests

Warnings

Deprecated Tests

The following tests are not compatible with the latest versions of MHKiT-Python:

Note: Known failing tests use assertFail to force them to pass.

Code Coverage

Style

Documentation

ebbflood Branch #101

Features

Bug Fixes

Other

Caveats

Windows Unit Tests

Deactivation of selected Windows Unit Tests (MATLAB > 2022a) is necessary for the following reasons:

MacOS Unit Tests

Deactivation of selected MacOS Unit Tests for Python 3.11 and MATLAB latest is necessary for the following reasons:

Python Error: ImportError:
      dlopen(/usr/local/miniconda/envs/TEST/lib/python3.11/site-packages/netCDF4/_netCDF4.cpython-311-darwin.so,
      0x0002): Symbol not found: (_SSL_get0_group_name)
        Referenced from: '/usr/local/miniconda/envs/TEST/lib/libcurl.4.dylib'
        Expected in:
        '/Users/runner/hostedtoolcache/MATLAB/2023.2.999/x64/MATLAB.app/bin/maci64/libssl.3.dylib'
rpauly18 commented 6 months ago

I'll be adding comments as I go through the review -

1) Please open an issue on the MHKiT-Matlab repo (if you have not already) for the depreciated tests so we can assign someone to address the incompatibility 2) for the code coverage report, you say it does not run automatically - how do you trigger it?

simmsa commented 6 months ago

@rpauly18,

rpauly18 commented 6 months ago

@simmsa feel free to merge this if you are 100% done with any additional changes.

simmsa commented 5 months ago

@rpauly18 Thank you for the review and the merge!