Add incremental build support to ExampleDrivenTesterTask#14
Open
slahoti1 wants to merge 4 commits into
Open
Conversation
- Set task Inputs to file globs (/**/*.m and /**/*.mlx) instead of folder paths so buildtool detects individual file changes - Always set task Outputs to a .last_run stamp file so buildtool can determine up-to-date status regardless of CreateTestReport setting - Write stamp file after successful test execution - Always create OutputPath directory since stamp file needs it - Add 7 new tests covering input tracking, output setup, stamp file creation, and incremental skip behavior Closes #10 Amp-Thread-ID: https://ampcode.com/threads/T-019d430c-3162-70ce-bbf0-6143f9221e1f Co-authored-by: Amp <amp@ampcode.com>
The timestamp-based default caused a new output folder on every buildfile evaluation, so the stamp file was never found on subsequent runs and the task always re-executed. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Incremental build now only activates when SourceFiles is provided, matching MathWorks TestTask behavior. Without SourceFiles, the task always re-runs. This ensures examples are always exercised unless the user explicitly opts in to skipping via tracked source dependencies. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove duplicate tExampleDrivenTesterTask_files folder and reuse existing tExamplesTester_files fixtures. Add source/myFunc.m to shared fixtures for SourceFiles tests. Update README with incremental build usage example. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
nothing has changed.
Details
SourceFiles accepts a string array of folders containing source code under test. The task constructs input globs from both the example folders and source folders (**/.m, **/.mlx), and sets task.Outputs to a stamp file written after
successful execution.
OutputPath defaults to "test-report" (static) so that the output location is deterministic across runs—required for buildtool's up-to-date check.
Test plan