Community Profile

photo

Andy Campbell


MathWorks

141 total contributions since 2013

I am an engineer with the MathWorks who is very interested in test-focused software development methodologies.

My opinions are my own and do not reflect those of MathWorks.

http://blogs.mathworks.com/developer/

Contact

Andy Campbell's Badges

  • First Review
  • 3 Month Streak
  • Revival Level 2
  • Knowledgeable Level 3
  • First Answer
  • Solver

View details...

Contributions in
View by

Answered
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...

1 day ago | 1

Published


A quick dip in the lake
As summer vacation comes to an end and schools get back into session, I hope that you, the reader, enjoyed the fine weather...

2 months ago

Thumbnail

Published


MATLAB Speaks C++
Hi everyone! Today I'd like to introduce a guest blogger, Vivek Bhownani, who is the lead developer for an exciting new...

3 months ago

Thumbnail

Published


MATLAB and Blob Storage
As a continuation from my previous post, this post discusses the use of the MATLAB interface for Azure™ Storage Blob.......

6 months ago

Thumbnail

Answered
Unit Testing : Figures
Does the approach outlined here work for your case? https://blogs.mathworks.com/developer/2018/07/30/semi-automated-testing/ ...

7 months ago | 1

| accepted

Published


The bucket list
While we are talking about buckets, it makes sense for me to introduce you to another type of bucket. This one contains...

7 months ago

Thumbnail

Published


Kick the Buckets
OK, quick follow up to last post. Having a parameterized build is great, but it presents us with one problem. I can...

7 months ago

Thumbnail

Answered
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...

8 months ago | 1

Published


Buckets of Builds
Buckets. Sometimes it rains buckets. Other times we are challenged with ice buckets. When it comes to my code, tests, and...

8 months ago

Thumbnail

Answered
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...

9 months ago | 0

Answered
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 ...

10 months ago | 0

Answered
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...

10 months ago | 0

Answered
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...

11 months ago | 2

| accepted

Published


Reporting for Duty
Hello all! I was reading up on Guy's blog the other day and remembered his great post showing a Simulink Test workflow with...

11 months ago

Thumbnail

Published


Just Keep Swimming
Remember Dory?... read more >>

1 year ago

Thumbnail

Published


Comma Separated Goodness
Hi folks, today I'd like to introduce ChangQing Wang. ChangQing is the lead developer on MATLAB's performance framework, and...

1 year ago

Thumbnail

Published


Git to the Lab!
Hello everyone, for this post, I'd like to introduce Mariano Lizarraga Fernandez as a guest blogger. He has a great story to...

1 year ago

Thumbnail

Answered
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...

1 year ago | 0

| accepted

Published


Semi-Automated Testing
I've been doing a bit of spelunking around the File Exchange and GitHub lately, and I've seen a little pattern emerge in the...

1 year ago

Thumbnail

Answered
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...

1 year ago | 0

| accepted

Published


Running MATLAB in the Cloud with Reference Architectures
The incredible growth and adoption of cloud based services make it an exciting time to be working at MathWorks with its rich...

1 year ago

Thumbnail

Published


MEX Debugging. Redefined.
Folks, today I'd like to introduce a new guest blogger Martijn Aben. Martijn is a support engineer out of our Netherlands...

1 year ago

Thumbnail

Answered
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...

1 year ago | 0

Answered
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 ...

1 year ago | 2

Published


App Exercise
Happy Friday! Today I'd like to introduce to you Steve McClure. Steve is the lead developer for the new App Testing...

1 year ago

Thumbnail

Published


Cov’ed Code All Throughout the Interwebs
You may remember that MATLAB can generate code coverage information in the Cobertura format now. Been able to since R2017b....

1 year ago

Thumbnail

Answered
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...

1 year ago | 0

| accepted

Answered
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...

1 year ago | 0

| accepted

Published


Flex your Specs
Wow folks, its been a long time! I feel like I am an old friend returning from traveling on a long epic adventure. Just call...

1 year ago

Thumbnail

Published


Leveraging cloud capabilities from MATLAB
My day job involves using MATLAB analytics at the heart of big, powerful solution stacks both on the Cloud and running...

2 years ago

Thumbnail

Load more