The scenario: synthetic app data needs an explicit build boundary
A medical application may need synthetic people and mock services for development or demonstrations. Those fixtures need a defined source and build boundary before a team can make claims about a release. A source scan, a configured variant, a packaged application and an installed device each provide different evidence. This chapter follows those boundaries through pinned Android source and isolated local execution.
Three existing JVM cases pass against an exact private source-scanning fixture. Four additional offline Gradle configuration observations exercise selected flag refusals and source-directory selection. Only the three JUnit cases enter the programme's case count; the configuration observations strengthen this chapter without being relabeled as additional tests. No production endpoint, real patient, signed release, store upload or device is involved.
Bind the research to the pinned files
The fixture contains 282 exact pinned files: Kotlin files from five selected source sets and the module build script. The test scans four of those as real-source candidates and derives selected mock definitions from the fifth. A private manifest records individual hashes and approximately 2.7 MB of source. Resources, other source sets and packaged artifacts are outside this fixture.
The original test source matches the existing isolated JVM runner byte for byte. Five runner build-configuration files also match the pinned revision. A private init script directs the test's source-root property to the fresh fixture and asserts that selection before execution. The product checkout is read only; no source, signing configuration or medical record is changed there.
Run the existing cases without inheriting signing configuration
The selected class runs through the existing cached Gradle wrapper and JDK in offline mode, with two workers and a bounded JVM heap. The process receives an allowlisted environment that omits signing variables. Its JUnit report records three cases with no failures, errors or skips. The case names were checked against existing private XML execution reports before counting them as new publication-backed evidence.
This is local JVM execution. It does not install or launch an app, verify a live server or inspect an APK. The compiled test reads pinned fixture files. Keeping that input explicit matters because a scanner run against a modified research tree could otherwise appear to establish something about a different source revision.
Understand the mock-name scanner's selected rule
The first case derives selected class/object names with mock-like prefixes from the mock implementation source. It checks that this derived set is nonempty, then scans the four selected real-source sets for matching definitions or references. The selected null-registry exception is handled explicitly in the test. The fixture passes those assertions.
The scanner removes comments with text operations and uses regular expressions. It is not a Kotlin compiler reachability analysis or an exhaustive detector of every possible synthetic-data source. Aliases, alternate representations, generated files and runtime data paths require their own evidence. The useful result is that the selected rule passes against the retained fixture, not a universal statement that no mock behavior can ever reach any real build.
Keep synthetic-name checks separate from patient-data assurance
The second case derives selected display-name literals from the mock source and checks their selected quoted representations in the real-source candidates. The case passes. No fixture names are included in this article, and no genuine patient data is used to obtain the result.
This is a source-literal boundary, not a privacy audit. It does not inspect databases, network responses, logs, translated resources or installed caches. A production-data assurance programme needs a broader inventory and permitted runtime evidence. Passing this particular synthetic-name scan should remain distinct from claims about every record or display path in the application.
Separate build-script strings from executed configuration
The third JVM case checks selected null-registry declarations and the presence of build-script expressions for production flag refusal and release source selection. It passes as a text-based assertion. By itself, that would not prove that Gradle actually evaluates the intended branch or that a packaged application contains the intended classes.
The separate configuration observations address part of that gap. They run the pinned configuration through Gradle rather than copying its condition into another language. A small private task inspects the configured debug/release source directories and asserts selected expected entries. This observes the configuration model; it does not assemble or inspect a release artifact.
Observe the default source selection
With the default flags, the isolated configuration task succeeds. The selected debug model includes the null-mock and non-demo-camera directories. The selected release model includes those directories as well and excludes the inspected mock implementation and demo-camera entries.
Android's primary build documentation describes source sets as inputs for variant-specific code and resources. That explains why configured directories are useful evidence, while the current observation remains specific to these supplied flags and this pinned build. Dependency contents, generated sources, resources and final packaging still need artifact-level acceptance before a broader release claim.
Verify selected production-URL refusals without contacting the URL
Two separate offline configuration invocations supply the mock flag or the demo-camera flag while retaining the source's default production base URL. Each fails with its corresponding selected guard message. The observation checks both a nonzero exit and the expected refusal text, separating these outcomes from an unrelated configuration error.
The URL is an input string to configuration; no request is sent to it. These two examples do not establish exhaustive hostname parsing, all property combinations or current production deployment settings. They show the selected pinned guard branches executing under the supplied inputs. A refused configuration is useful pre-packaging evidence, not proof of installed behavior.
Observe the local debug exception and release boundary
A fourth configuration invocation supplies an explicit loopback URL and enables both mock and demo-camera flags. It succeeds. The selected debug model includes the mock implementation and demo-camera directories, while the inspected release model retains the null-mock and non-demo-camera directories.
No loopback service is started or contacted, and no app is assembled in these configuration observations. The result establishes selected directory membership and flag handling in the configuration model. It does not demonstrate that a release compiles, that a signed artifact is free of every synthetic dependency or that a device cannot receive synthetic data from another path.
Handover before packaging or a store release
Retain the three JUnit cases, fixture hashes, build-file equality receipt and four timestamped configuration logs. Keep their scopes separate in the release checklist: source scanning, configuration, artifact inspection and installed behavior. A configuration refusal is accepted only when its exit status and selected guard message agree; an unrelated failed command does not establish that a guard ran.
The next acceptance should inspect the intended assembled artifact, verify variant inputs and generated resources, then exercise the permitted installed workflow with synthetic data. Signing, store approval, server identity and current production data isolation remain unverified here. The concrete contribution is reproducible pinned source and configuration evidence that another engineer can review before making those larger release claims.
Compare the reviewed boundaries
Keep the evidence layers distinct
On smaller screens, scroll across to compare every column. Keyboard users can focus the table and use the arrow keys.
| Evidence layer | Observed here | Still separate |
|---|---|---|
| Source scans | Three selected JUnit cases pass | Semantic reachability / all synthetic sources |
| Configuration guards | Selected mock/demo flags refused with default URL | Exhaustive property/hostname combinations |
| Directory model | Selected default/local debug and release entries | Generated/dependency/package contents |
| Artifact and device | Not exercised | Assembly, inspection, signing, install and current behavior |
Additional implementation references
These provider references explain current implementation context. Historical Movo-X observations remain tied to the source records described above.
About this engineering series
Written by Omer Muneer Qazi from a review of Movo-X implementation and dated engineering records. This article explains source behaviour and historical observations; current production, clinical outcomes and store availability require their own verification. Examples are synthetic and proposed test cases are identified as such.
Explore the Movo-X engineering series → · Related implementation experience →
Discuss a similar engineering problem
Send the workflow, current platform and the decision your team needs to make. I can help define an implementation or review scope with concrete acceptance evidence.
Discuss your project on WhatsApp ↗