Feeds
답변 있음
How to generate code coverage and cobertura test reports for the same source code in R2022b
Hi Alexander, In releases prior to R2022a, running tests with more than one code coverage plugin added to the TestRunner could ...
How to generate code coverage and cobertura test reports for the same source code in R2022b
Hi Alexander, In releases prior to R2022a, running tests with more than one code coverage plugin added to the TestRunner could ...
거의 2년 전 | 0
| 수락됨
답변 있음
how to customize unittest report name
Hi Chetan, There is currently no way to change the title in the test report, but we've taken note of your request. Are you jus...
how to customize unittest report name
Hi Chetan, There is currently no way to change the title in the test report, but we've taken note of your request. Are you jus...
2년 초과 전 | 1
| 수락됨
답변 있음
Assign value to property of mock object when method is called
If you're using R2018b or later, you can use the Invoke action to set this up. Here's an example: function example import ...
Assign value to property of mock object when method is called
If you're using R2018b or later, you can use the Invoke action to set this up. Here's an example: function example import ...
대략 4년 전 | 1
| 수락됨
답변 있음
Create a mock with defined behavior on different subsequent method calls
I know this reply is coming very late, but if it's still helpful, this is possible in R2019b using the Invoke action to define m...
Create a mock with defined behavior on different subsequent method calls
I know this reply is coming very late, but if it's still helpful, this is possible in R2019b using the Invoke action to define m...
대략 5년 전 | 1
답변 있음
unit test mocking framework: verify a method was called in a sequence
I know this reply is coming very late, but in case it's still helpful, this is now possible in R2019b using the Occurred constra...
unit test mocking framework: verify a method was called in a sequence
I know this reply is coming very late, but in case it's still helpful, this is now possible in R2019b using the Occurred constra...
대략 5년 전 | 0
답변 있음
Unit Test: Write parametrized tests where TestParameters depends on ClassSetupParameters?
Sorry for the long delay in replying! Were you able to find a workaround? The only workaround I can think of is to manually c...
Unit Test: Write parametrized tests where TestParameters depends on ClassSetupParameters?
Sorry for the long delay in replying! Were you able to find a workaround? The only workaround I can think of is to manually c...
거의 7년 전 | 0
답변 있음
How can I pass values from inside a TestRunner run?
You can use a TestRunnerPlugin to store data from the test run. I've included some example code below to show how this might wor...
How can I pass values from inside a TestRunner run?
You can use a TestRunnerPlugin to store data from the test run. I've included some example code below to show how this might wor...
거의 7년 전 | 0
| 수락됨
답변 있음
How can I make a mock method return different answers?
Unfortunately, there isn't a clean way to do this. I'll record this question in an enhancement request, though, for consideratio...
How can I make a mock method return different answers?
Unfortunately, there isn't a clean way to do this. I'll record this question in an enhancement request, though, for consideratio...
7년 초과 전 | 1
| 수락됨
답변 있음
How to use constant property when defining TestParameter in unittest.
This is a bug: https://www.mathworks.com/support/bugreports/1212962 The bug report mentions Static methods but the same is...
How to use constant property when defining TestParameter in unittest.
This is a bug: https://www.mathworks.com/support/bugreports/1212962 The bug report mentions Static methods but the same is...
8년 초과 전 | 1
| 수락됨
답변 있음
Parameters for Matlab.unittest.TestCase
If you have access to R2014a or later, parameterized testing could still be an option. Parameter values are often hard-coded but...
Parameters for Matlab.unittest.TestCase
If you have access to R2014a or later, parameterized testing could still be an option. Parameter values are often hard-coded but...
대략 10년 전 | 2
답변 있음
How to perform multiple identical unit tests.
Release 2014a provides another solution that you may want to consider -- writing a parameterized test. Please see <http://www.ma...
How to perform multiple identical unit tests.
Release 2014a provides another solution that you may want to consider -- writing a parameterized test. Please see <http://www.ma...
거의 11년 전 | 1
답변 있음
Data driven Unit Tests
Another possibility, as of release 2014a, is to write a <http://www.mathworks.com/help/matlab/matlab_prog/create-basic-parameter...
Data driven Unit Tests
Another possibility, as of release 2014a, is to write a <http://www.mathworks.com/help/matlab/matlab_prog/create-basic-parameter...
거의 11년 전 | 2
답변 있음
How to perform multiple identical unit tests.
Hi Graham, One approach is to define your test content in an abstract base class. The test content would refer to an abstract...
How to perform multiple identical unit tests.
Hi Graham, One approach is to define your test content in an abstract base class. The test content would refer to an abstract...
대략 11년 전 | 2
| 수락됨
답변 있음
New update breaks my code
I realize that this question is quite old, but in case anyone else comes across the same issue, this is likely due to this bug i...
New update breaks my code
I realize that this question is quite old, but in case anyone else comes across the same issue, this is likely due to this bug i...
대략 13년 전 | 0
답변 있음
[database fast/insert] If exdata a struct, values must be scalars?
Database Toolbox's _insert_ and _fastinsert_ should work with structures containing multiple rows. I think the issue is in this ...
[database fast/insert] If exdata a struct, values must be scalars?
Database Toolbox's _insert_ and _fastinsert_ should work with structures containing multiple rows. I think the issue is in this ...
대략 13년 전 | 0
| 수락됨
답변 있음
Riskless assets and Financial toolbox
If you have access to R2011a, you can use the <http://www.mathworks.com/help/toolbox/finance/bswiyc9-1.html Portfolio object> to...
Riskless assets and Financial toolbox
If you have access to R2011a, you can use the <http://www.mathworks.com/help/toolbox/finance/bswiyc9-1.html Portfolio object> to...
거의 14년 전 | 0