-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove unused ophys script * Remove toolbox dependencies from ecephys tutorial - Not useful for someone who doesn't have the statistics toolbox - A lot more work to get working with CI. * Revert "Revert "Add tutorial tests"" This reverts commit 5a516d0. * Revert "Revert "Remove code blocks from dynamic filters tutorial"" This reverts commit 322a225. * Revert "Revert "Update reformatted dynamic filters html"" This reverts commit e8587e7. * Fix tutorial tests missing environment files We need to generateCore here. * reinstate dynamic filter live script. * Add path before running scripts Otherwise running the scripts may not properly handle the environment correctly. * print debugging * remove formatStruct which is not a tutorial Co-authored-by: Lawrence Niu <[email protected]>
- Loading branch information
1 parent
5a516d0
commit 5409664
Showing
6 changed files
with
300 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
function tests = tutorialTest() | ||
tests = functiontests(localfunctions); | ||
end | ||
|
||
function setupOnce(testCase) | ||
rootPath = fullfile(fileparts(mfilename('fullpath')), '..', '..'); | ||
testCase.applyFixture(matlab.unittest.fixtures.PathFixture(rootPath)); | ||
tutorialPath = fullfile(rootPath, 'tutorials'); | ||
addpath(tutorialPath); | ||
testCase.TestData.listing = dir(tutorialPath); | ||
end | ||
|
||
function setup(testCase) | ||
testCase.applyFixture(matlab.unittest.fixtures.WorkingFolderFixture); | ||
generateCore('savedir', '.'); | ||
rehash(); | ||
end | ||
|
||
function testTutorials(testCase) | ||
skippedTutorials = {... | ||
'basicUsage.mlx', ... | ||
'convertTrials.m', ... | ||
'formatStruct.m'}; | ||
for i = 1:length(testCase.TestData.listing) | ||
listing = testCase.TestData.listing(i); | ||
if listing.isdir || any(strcmp(skippedTutorials, listing.name)) | ||
continue; | ||
end | ||
run(listing.name); | ||
end | ||
end |
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.