Réponse apportée
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...

plus de 11 ans il y a | 2

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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. ...

presque 12 ans il y a | 2

Réponse apportée
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...

presque 12 ans il y a | 3

| A accepté

A résolu


Test problem (times2)
This tests Cody's behavior when an assert is placed outside of a test cell

presque 12 ans il y a

Problème


Test problem (times2)
This tests Cody's behavior when an assert is placed outside of a test cell

presque 12 ans il y a | 0 | 2 solveurs

Réponse apportée
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...

presque 12 ans il y a | 1

Réponse apportée
How to synchronize multiple timeseries
I have answered this here: http://stackoverflow.com/questions/16364127/synchronize-multiple-timeseries

presque 12 ans il y a | 0

Réponse apportée
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> ...

environ 12 ans il y a | 0

Réponse apportée
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...

environ 12 ans il y a | 1

Réponse apportée
Suppress figures in unit tests
Hi Gordon, This seems to work for me: classdef KillFigureTest < matlab.unittest.TestCase properties ...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 12 ans il y a | 1

A résolu


Add two numbers
Given a and b, return the sum a+b in c.

environ 12 ans il y a

A résolu


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

environ 12 ans il y a

Réponse apportée
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...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
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-...

plus de 12 ans il y a | 1

A résolu


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

plus de 12 ans il y a

Réponse apportée
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...

plus de 12 ans il y a | 1

Réponse apportée
How to save a property inside unittest for various methods?
Hi Nicolas, It is by design that each test method is its own independent instance. This is done to help ensure order independ...

plus de 12 ans il y a | 3

Réponse apportée
Data driven Unit Tests
Hi Stephen, You may be able to achieve this using a common test as a base class that has an Abstract property or an abstract ...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
Regression testing code that takes user input via the input() function
Hi Chad, I am glad that the framework is working well for you! Currently in order to use a mock/stub/fake/spy for a functi...

plus de 12 ans il y a | 3

| A accepté

Réponse apportée
Trouble running the unit test example
Hi Gabe, I think you may have a different runtests function higher on the path. Can you confirm this? >> which -all runt...

plus de 12 ans il y a | 3

| A accepté

Réponse apportée
Is it possible to create a function handle to a class property set method?
Hi Adam, To answer your direct question a set method is not something that you can create an anonymous function to. However, ...

plus de 12 ans il y a | 3

| A accepté

Réponse apportée
A GUI to the new Unit Testing Framework
There is no separate GUI for the unit test framework other than the main MATLAB GUI, although you can easily run a single test u...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
MATLAB xUnit Test Framework: handling error()
Hi Mick, When you say you are using the xUnit Test Framework are you referring to Steve Eddins' <http://www.mathworks.com/mat...

plus de 12 ans il y a | 0

A résolu


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

presque 13 ans il y a

A résolu


Is my wife right?
Regardless of input, output the string 'yes'.

presque 13 ans il y a