Feeds
답변 있음
MATLAB App Testing - Confirmation dialog boxes
Until this functionality is included in the App Testing Framework, if you can adjust the architecture of the source code you can...
MATLAB App Testing - Confirmation dialog boxes
Until this functionality is included in the App Testing Framework, if you can adjust the architecture of the source code you can...
대략 3년 전 | 0
| 수락됨
답변 있음
How to pass additional data to testresults of unittest inside testmethod of matlab.unittest.TestCase in 2019b
Hi Florian, The ability to write a plugin that can append to the test result details was added in R2020a and is documented here...
How to pass additional data to testresults of unittest inside testmethod of matlab.unittest.TestCase in 2019b
Hi Florian, The ability to write a plugin that can append to the test result details was added in R2020a and is documented here...
대략 4년 전 | 1
| 수락됨
답변 있음
How to call a function if unit test fails?
Hi there, If you really want to stay in a script based test, the best way to do this would to be to use a try-catch %% Unit te...
How to call a function if unit test fails?
Hi there, If you really want to stay in a script based test, the best way to do this would to be to use a try-catch %% Unit te...
거의 5년 전 | 2
| 수락됨
답변 있음
Can you specify which value TestParameter properties take in a class-based unit performance test?
Hello Jai, Yes you can create the suite using the name of the indidivual test directly, or use other name/value pairs to sele...
Can you specify which value TestParameter properties take in a class-based unit performance test?
Hello Jai, Yes you can create the suite using the name of the indidivual test directly, or use other name/value pairs to sele...
거의 5년 전 | 0
답변 있음
Is there a good pattern to combine unit testing and performance testing?
Hi Andrew, Sorry for such a delay! If you have 18a or later you can leverage labeled measurement boundaries to get both measu...
Is there a good pattern to combine unit testing and performance testing?
Hi Andrew, Sorry for such a delay! If you have 18a or later you can leverage labeled measurement boundaries to get both measu...
거의 5년 전 | 0
답변 있음
Is there an easy way to build a test suite from all tests in a folder containing multiple packages?
Hi Brian, I definitely endorse Sean's suggestion to use projects. That said, this is good feedback since it seems you expecte...
Is there an easy way to build a test suite from all tests in a folder containing multiple packages?
Hi Brian, I definitely endorse Sean's suggestion to use projects. That said, this is good feedback since it seems you expecte...
거의 5년 전 | 1
| 수락됨
답변 있음
verifyError in a script based unit test
Hello, Since there is no testCase provided for script based tests, they don't support the Qualification API, and that definitel...
verifyError in a script based unit test
Hello, Since there is no testCase provided for script based tests, they don't support the Qualification API, and that definitel...
대략 5년 전 | 2
| 수락됨
답변 있음
Using Load in a test methods makes the test pass
Hi Erik, The problem here is indeed the fact that the testCase is getting overwritten. Hence why if you assign the output of th...
Using Load in a test methods makes the test pass
Hi Erik, The problem here is indeed the fact that the testCase is getting overwritten. Hence why if you assign the output of th...
대략 5년 전 | 1
답변 있음
Unit Testing : Figures
Does the approach outlined here work for your case? https://blogs.mathworks.com/developer/2018/07/30/semi-automated-testing/ ...
Unit Testing : Figures
Does the approach outlined here work for your case? https://blogs.mathworks.com/developer/2018/07/30/semi-automated-testing/ ...
5년 초과 전 | 1
| 수락됨
답변 있음
Replacing NaNs with zero in a matrix within a cell array.
The fillmissing function is built for this, you just need to use cellfun since each of these doubles are included in the cell ar...
Replacing NaNs with zero in a matrix within a cell array.
The fillmissing function is built for this, you just need to use cellfun since each of these doubles are included in the cell ar...
5년 초과 전 | 1
답변 있음
Storing results from unit tests for later review
Based on the comments above, it sounds like you may want to try an approach simialr to the one outlined in this blog post: ht...
Storing results from unit tests for later review
Based on the comments above, it sounds like you may want to try an approach simialr to the one outlined in this blog post: ht...
거의 6년 전 | 0
답변 있음
Create test runner from cell array of function handles and arguments and overwrite failure summary text
I may be missing something, but this seems like something you don't need to do at all. Rather I would suggest using Assumptions ...
Create test runner from cell array of function handles and arguments and overwrite failure summary text
I may be missing something, but this seems like something you don't need to do at all. Rather I would suggest using Assumptions ...
거의 6년 전 | 0
답변 있음
Exception Safety and Incremental Teardown for Unit Tests
There is a blog post that describes the addTeardown method and some of its benefits over other methods of managing test and test...
Exception Safety and Incremental Teardown for Unit Tests
There is a blog post that describes the addTeardown method and some of its benefits over other methods of managing test and test...
거의 6년 전 | 0
답변 있음
Should I rather write scripts for tests and use the runtests function or define test classes which inherit from the matlab.unittest.TestCase class?
Hi David, Tests can be written as scripts, functions or classes, and which interface you use depends on your preference and com...
Should I rather write scripts for tests and use the runtests function or define test classes which inherit from the matlab.unittest.TestCase class?
Hi David, Tests can be written as scripts, functions or classes, and which interface you use depends on your preference and com...
거의 6년 전 | 3
| 수락됨
답변 있음
TAP results do not show up during execution time, if a TestClassSetup is present
This was also asked and answered on stack overflow: https://stackoverflow.com/questions/51760637/tap-results-do-not-show-up-d...
TAP results do not show up during execution time, if a TestClassSetup is present
This was also asked and answered on stack overflow: https://stackoverflow.com/questions/51760637/tap-results-do-not-show-up-d...
6년 초과 전 | 0
| 수락됨
답변 있음
How to change unittest console log
Hi Jack, You can do this by using the struct syntax to define the parameters, which allows you to give a label to the paramet...
How to change unittest console log
Hi Jack, You can do this by using the struct syntax to define the parameters, which allows you to give a label to the paramet...
6년 초과 전 | 0
| 수락됨
답변 있음
how to import package for several tests in unittest framework?
Hi Jack, This is currently a limitation in the MATLAB language, which restricts the import scope to functions and methods. Th...
how to import package for several tests in unittest framework?
Hi Jack, This is currently a limitation in the MATLAB language, which restricts the import scope to functions and methods. Th...
6년 초과 전 | 0
답변 있음
Can I run unit tests in the MCR?
Hi Bob, The test framework doesn't require the use or even presence of the command window. By default using runtests much of ...
Can I run unit tests in the MCR?
Hi Bob, The test framework doesn't require the use or even presence of the command window. By default using runtests much of ...
6년 초과 전 | 2
답변 있음
Error while running the script based Unit Tests
Hi Dipesh, The example you are referring to applies to more recent versions of MATLAB. R2014b was the first release in MATLAB...
Error while running the script based Unit Tests
Hi Dipesh, The example you are referring to applies to more recent versions of MATLAB. R2014b was the first release in MATLAB...
6년 초과 전 | 0
| 수락됨
답변 있음
Unit test with several data sets
Hello Maia, It sounds like you may be interested in leveraging <https://www.mathworks.com/help/matlab/matlab_prog/create-basi...
Unit test with several data sets
Hello Maia, It sounds like you may be interested in leveraging <https://www.mathworks.com/help/matlab/matlab_prog/create-basi...
6년 초과 전 | 0
| 수락됨
답변 있음
How is the execution order defined between multiple tests within matlab.unittest.TestCase.run?
Hi William, The order is not guaranteed by design. This is so that the tests can follow the principle of <http://xunitpattern...
How is the execution order defined between multiple tests within matlab.unittest.TestCase.run?
Hi William, The order is not guaranteed by design. This is so that the tests can follow the principle of <http://xunitpattern...
대략 7년 전 | 1
답변 있음
Executing function inside script-based unit test?
Hi Nick, I might be missing something here, but you just execute the function from within your script based test. Does your f...
Executing function inside script-based unit test?
Hi Nick, I might be missing something here, but you just execute the function from within your script based test. Does your f...
대략 7년 전 | 0
답변 있음
(How) Is it possible to set the 'Details' Property of a TestResult object in the Matlab Unit Test Framework?
Hi Alex, While this is not currently available, the purpose and principle behind the Details property is indeed that it can s...
(How) Is it possible to set the 'Details' Property of a TestResult object in the Matlab Unit Test Framework?
Hi Alex, While this is not currently available, the purpose and principle behind the Details property is indeed that it can s...
7년 초과 전 | 0
답변 있음
Create a MATLAB Unit Test Suite to Test a Simulink Model
Hi Trevor, This was a feature introduced in R2016b. <https://www.mathworks.com/help/sltest/release-notes.html#bvb748x-1 Here>...
Create a MATLAB Unit Test Suite to Test a Simulink Model
Hi Trevor, This was a feature introduced in R2016b. <https://www.mathworks.com/help/sltest/release-notes.html#bvb748x-1 Here>...
7년 초과 전 | 0
| 수락됨
답변 있음
How can I set a unit test class variable from a test function?
Hello mg, In order to support the principle of <http://xunitpatterns.com/Principles%20of%20Test%20Automation.html#Independent...
How can I set a unit test class variable from a test function?
Hello mg, In order to support the principle of <http://xunitpatterns.com/Principles%20of%20Test%20Automation.html#Independent...
7년 초과 전 | 1
| 수락됨
답변 있음
Good examples for projects with unittests?
Hi Andreas, Here are a couple things to get you started: * The test framework <https://www.mathworks.com/help/matlab/matla...
Good examples for projects with unittests?
Hi Andreas, Here are a couple things to get you started: * The test framework <https://www.mathworks.com/help/matlab/matla...
거의 8년 전 | 0
답변 있음
How to create a plugin that stores the exception from a failing test
This is probably a dup of <http://www.mathworks.com/matlabcentral/answers/108592#answer_127796 this question> as per isakson poi...
How to create a plugin that stores the exception from a failing test
This is probably a dup of <http://www.mathworks.com/matlabcentral/answers/108592#answer_127796 this question> as per isakson poi...
거의 8년 전 | 0
답변 있음
Can I set unit test TestParameter properties using functions not on the path?
Hey Matt, The problem at play here is the fact that your test class definition itself (what happens the first time you load t...
Can I set unit test TestParameter properties using functions not on the path?
Hey Matt, The problem at play here is the fact that your test class definition itself (what happens the first time you load t...
거의 8년 전 | 0
| 수락됨
답변 있음
Is there a way share TestParameter and ClassSetupParameter properties of unit test class?
Hi Yvan, it sounds like you simply need access to the same parameters in a TestClassSetup as you do in one or more of your te...
Is there a way share TestParameter and ClassSetupParameter properties of unit test class?
Hi Yvan, it sounds like you simply need access to the same parameters in a TestClassSetup as you do in one or more of your te...
거의 8년 전 | 1
| 수락됨
답변 있음
How to save results of a Class-Based Unittest without ToFile Plugin?
As Sean alludes to in his comment, I think the best exxperience will be if you are able to upgrade to a newer release that has T...
How to save results of a Class-Based Unittest without ToFile Plugin?
As Sean alludes to in his comment, I think the best exxperience will be if you are able to upgrade to a newer release that has T...
대략 8년 전 | 0