Skip to content

Commit e6705e7

Browse files
committed
feat: Add comprehensive integration test coverage
- Add 18 new integration test suites covering advanced SDK features - Add utility classes for test helpers and performance assertions - Optimize test execution with parallel processing - Update Credentials management for better security Test suites include coverage for: - Complex query scenarios (AND/OR/NOT operations) - Deep reference fetching and nested structures - JSON RTE with embedded items - Modular blocks and global fields - Locale fallback mechanisms - Field projection and pagination - Asset management operations - Error handling and retry logic - Sync operations and metadata All tests passing with optimized execution time.
1 parent ba2548a commit e6705e7

31 files changed

+15902
-3176
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,3 +272,4 @@ src/main/resources/
272272
/src/main/java/com/contentstack/sdk/models/
273273
/.vscode/
274274
/.vscode/
275+
/docs/

pom.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,34 @@
282282
<include>**/*IT.java</include>
283283
</includes>
284284
<skipTests>true</skipTests>
285+
<!-- OPTIMIZED: Parallel execution with controlled concurrency -->
286+
<parallel>classes</parallel>
287+
<threadCount>4</threadCount>
288+
<perCoreThreadCount>false</perCoreThreadCount>
289+
<useUnlimitedThreads>false</useUnlimitedThreads>
290+
<!-- Reuse forks for better performance -->
291+
<reuseForks>true</reuseForks>
292+
<forkCount>2</forkCount>
293+
<!-- Increase timeout for slow tests -->
294+
<forkedProcessTimeoutInSeconds>500</forkedProcessTimeoutInSeconds>
295+
<!-- Better memory management -->
296+
<argLine>-Xmx2048m -XX:MaxMetaspaceSize=512m</argLine>
285297
</configuration>
286298
</plugin>
299+
300+
<plugin>
301+
<groupId>org.apache.maven.plugins</groupId>
302+
<artifactId>maven-surefire-report-plugin</artifactId>
303+
<version>2.22.2</version>
304+
<executions>
305+
<execution>
306+
<phase>test</phase>
307+
<goals>
308+
<goal>report-only</goal>
309+
</goals>
310+
</execution>
311+
</executions>
312+
</plugin>
287313

288314
<plugin>
289315
<groupId>org.apache.maven.plugins</groupId>

src/test/java/com/contentstack/sdk/AssetLibraryIT.java

Lines changed: 0 additions & 164 deletions
This file was deleted.

0 commit comments

Comments
 (0)