Comments (8)
@DmitriyGeForce Thank you for logging this issue, for discussion. For mock it is easier to support one level master-detail relationship, however to support multiple levels will require some more explorations. The background is that the children field is read-only, and can only be injected values via deserialization. To support children for mock is definitely the goal for next version, since the use case is very important.
For save, save(false), they are used as the same as when you construct sObjects list with code. Even you inserted the sObject with Database.insert, the children won't be retrieved automatically. We have to re-select the children relationship explicitly via SOQL.
from apextestkit.
@DmitriyGeForce Any preference from your side? I plan to have the next release in Jan next year 2021.
from apextestkit.
@DmitriyGeForce Just some update to you, the children mock data support is at least 80% done.
Please wait a few more days, I need to write more test cases to cover mock scenarios. And there will be some paragraph in the Readme to describe what are the restrictions to generate children referencing. With all the computation logic added to the new algorithm, the performance goes down a bit. I also need to fine tune it.
Thus, more unit tests and performance are the two key areas I need to focus for now. According to Salesforce documentation, we probably only need to support 1 level of child referencing, with arbitrary levels (~5) parent referencing.
from apextestkit.
@DmitriyGeForce The feature you requested is released with v3.4. Please check the Readme for more detail.
from apextestkit.
@inksword Thank you for response and explanation. Can you tell me when the next version is planned?
from apextestkit.
@inksword The only preference is to have this functionality in the nearest future)
It would be great to have this functionality at Jan next year 2021
from apextestkit.
@inksword Great, thank you for an update. Look forward to using this functionality.
from apextestkit.
@inksword Excellent, thank you for implementation!
from apextestkit.
Related Issues (13)
- Dependent picklist value assignment is not based on its controlling field
- ContentVersion generation error: FIELD_INTEGRITY_EXCEPTION HOT 1
- [proposal] the save method should use "true" implicitly HOT 4
- Field value can be computed from the value of a previous record
- Enforce directed acyclic graph (DAG) checking for sObject relationships
- Stack limitation exception is raised when debug level is finest HOT 2
- Mock method backward compatibility 3.3.1 and 3.4.1 versions HOT 2
- v4.0 with BDD HOT 1
- Failing test_Util_Converter test case HOT 3
- Strive to above 95% testing coverage
- Make referenceBy() optional if only one lookup field on object
- Provide hashcode like format for unique text field generation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apextestkit.