Beantwortet
Folder structure for matlab unit tests
This is something that is highly subjective and many people will have many varied opinions. I have found over the years that no ...

mehr als 7 Jahre vor | 1

Beantwortet
rmdir frequently fails with the 'MATLAB:RMDIR:SomeDirectoriesNotRemoved' error
Have you tried using the <http://www.mathworks.com/help/matlab/ref/matlab.unittest.fixtures.temporaryfolderfixture-class.html Te...

fast 8 Jahre vor | 3

Beantwortet
Creating an array of structs and using the field directly?
Do you need it to be a one liner? If not: s = [struct('field',1) struct('field',2)]; a = {s.field}; Otherwise you...

etwa 8 Jahre vor | 1

Beantwortet
matlab.unittest.testcase not found on path
This does seem like an installation problem. A couple things to try: 1. Look for TestCase >> which -all matlab.unittest.T...

etwa 8 Jahre vor | 0

Beantwortet
Execution rules of SharedTestFixtures for complex dependencies
Hi Ilya, Great question! First the guiding principle is that shared test fixtures first value robustness/correctness, and sec...

etwa 8 Jahre vor | 1

| akzeptiert

Beantwortet
No unittest package found in Matlab 2015b
You should have the relevant code, although it's possible t moved locations. Type >> what runtests to see where th...

mehr als 8 Jahre vor | 0

| akzeptiert

Beantwortet
Can anyone explain the absence of functions when testing
When you create a test suite "fromFile" or "fromFolder", the test runner changes to that folder and adds it to the path when run...

mehr als 8 Jahre vor | 1

| akzeptiert

Beantwortet
Show complete error table using verifyEqual (from Unit Testing)
There is currently no way to show all the indices in the failure table when the array has more than 50 failing indices. I am ...

mehr als 8 Jahre vor | 0

| akzeptiert

Beantwortet
Running a Unit Test for multiple functions
Hi Connor, Definitely look into Cody Coursework, but for now it only supports script-based testing, which does not have as ma...

mehr als 8 Jahre vor | 1

Beantwortet
Running a Unit Test for a script
Hi Conner, You can can just call the script from within a test function or method. Then the variables that were created in th...

mehr als 8 Jahre vor | 2

Beantwortet
Problems using type double in fatalAssertEqual function (unit testing)
Hello, Learning about unit testing is definitely a good thing, and I'd be happy to help as you encounter questions. The us...

fast 9 Jahre vor | 0

Beantwortet
Script-Based Unit Testing Problem (from MathWorks example)
Hello, The Script based testing interface was added in R2014b, and in that release the shared variable section was not suppor...

fast 9 Jahre vor | 0

| akzeptiert

Beantwortet
Problem Displaying Unit Test Results
Hi Christopher, The table conversion method from TestResult was added in release R2014b, so it just seems you don't have the ...

fast 9 Jahre vor | 0

| akzeptiert

Beantwortet
How do I teardown fixture while using a TestCase obj in interactive mode?
Hello Kouichi, Yes applyFixture ties the fixture teardown step to the lifecycle of the testCase upon which it is applied, so ...

fast 9 Jahre vor | 0

Beantwortet
error stack trace visible with verifyError
Hi Hans, I think that there is still some key ingredient missing. I wrote the following stub for LoadFaultTable: funct...

etwa 9 Jahre vor | 0

| akzeptiert

Beantwortet
How can I assign the Test Diagnostic provided by the Unit Testing framework in the Command Window to a variable
Hi Malek, You can get programmatic access to this information by creating and installing a |TestRunnerPlugin| for the test ru...

etwa 9 Jahre vor | 0

| akzeptiert

Beantwortet
In Matlab unittesting how to modify a property after test suite is created
If you do not yet have R2014b, there are a few things you can do to at least get something close to this behavior. One thing...

mehr als 9 Jahre vor | 0

Beantwortet
In Matlab unittesting how to modify a property after test suite is created
Hello Nadjib, The reason you can't change the property like you were trying to do is becase |matlab.unittest.Test| and |mat...

mehr als 9 Jahre vor | 2

| akzeptiert

Beantwortet
How can I get the function handle to the currently running function without relying upon the current path settings?
One approach that you can take is to exploit the fact that the local functions have higher precedence than the functions that ma...

mehr als 9 Jahre vor | 0

| akzeptiert

Beantwortet
How to create a plugin that stores the exception from a failing test
Hi Daniel, There is currently no plugin included with the framework that directly stores this information on its properties. ...

mehr als 9 Jahre vor | 2

Beantwortet
How to use Matlab's unit test framework component verifyError to verify an error from a MEX function
Hi Vincent, The verifyError function requires that the error thrown is an <http://www.mathworks.com/help/matlab/matlab_prog/c...

fast 10 Jahre vor | 3

| akzeptiert

Beantwortet
How can I integrate the MATLAB testing framework with Team Foundation Server
***** UPDATE ***** Another possibility you can try is setting up your own Jenkins Server (at least for simple cases this is n...

fast 10 Jahre vor | 1

Beantwortet
How to synchronize multiple timeseries
I have answered this here: http://stackoverflow.com/questions/16364127/synchronize-multiple-timeseries

fast 10 Jahre vor | 0

Beantwortet
xml output for matlab.unittest results
In R2014a, MATLAB has <http://www.mathworks.com/help/matlab/ref/matlab.unittest.plugins.tapplugin-class.html included a plugin> ...

fast 10 Jahre vor | 0

Beantwortet
How do execute a GUI's callback functions from the command line
Hello Tolulope, What you ask for is something that is not currently available in MATLAB, and I have created an enhancement re...

fast 10 Jahre vor | 1

Beantwortet
Suppress figures in unit tests
Hi Gordon, This seems to work for me: classdef KillFigureTest < matlab.unittest.TestCase properties ...

fast 10 Jahre vor | 0

| akzeptiert

Beantwortet
is there a code to open and run all m files in a folder?
To expand on per's answer, in R2014a you can do this using parameterized tests: classdef TestAllFiles < matlab.unittest.T...

etwa 10 Jahre vor | 1

Beantwortet
Why are unittests running twice?
Hi Reinhold, It's tough to tell precisely what is going on here. My first thought is that perhaps you have two copies of your...

etwa 10 Jahre vor | 0

| akzeptiert

Beantwortet
Fail Reasons exportable in the UnitTest-Framework?
This is related to your other question <http://www.mathworks.com/matlabcentral/answers/108586-will-there-be-a-pdf-documentation-...

mehr als 10 Jahre vor | 1

Beantwortet
Matlab Unit Testing Framework supporting Simulink?
Hello Till, The MATLAB Unit Test framework is written for use with the MATLAB language. However, using Simulink commands like...

mehr als 10 Jahre vor | 1

Mehr laden