Skip to content

Framework's test suite compatibility prior to R2014a #23

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

Merged

Conversation

bauglir
Copy link
Contributor

@bauglir bauglir commented Jan 10, 2017

As pointed out by @nzbuu in #21, matlab-xunits own test suite does not run on versions prior to R2014a, as localfunctions does not exist in those versions. Even though in my previous update I explicitly mentioned in the documentation that special care needs to be taken when writing test suite spanning this wide range of MATLAB versions, I forgot to apply this lesson to the framework's own test suite.

I have run the tests in R2014a and R2016b and everything passes. Unfortunately, I currently cannot install older versions than R2014a as I'm on Ubuntu and my network interfaces do not follow the eth* or en* naming convention required by releases prior to that version (as describe here). Perhaps either @psexton or @nzbuu can verify the tests now run as expected? Given this is the same technique used to get function handles to packaged subfunction test suites in versions where localfunctions is broken, I'm fairly confident they do, but it probably doesn't hurt to check.

While I was at it, I've also removed the src subdirectory from tests fixing #22.

The `runxunit` command does not run recursively go through test folders
to find all tests. Therefore trying to run the tests for the xUnit
framework itself was more cumbersome then strictly necessary.

Closes psexton#22.
As `localfunctions` is only available _after_ R2013b, the framework's
own tests do not run on older MATLAB versions, even though they are
supported. By using the more elaborate syntax for creating an array of
function handles to subfunctions inside a test suite the test suite
becomes compatible with all supported MATLAB versions.

Fixes psexton#21.
@psexton psexton merged commit f88af39 into psexton:master Jan 10, 2017
@psexton
Copy link
Owner

psexton commented Jan 10, 2017

Tests passed on win64 on every "b" version 2011-2016.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants