FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat: Add comprehensive integration test coverage by AniketDev7 · Pull Request #244 · contentstack/contentstack-java · GitHub

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .java  (28) .xml  (1) dotfile  (1) All 3 file types selected
Only manifest files
Deleted files Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
2 changes: 2 additions & 0 deletions .gitignore
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
Original file line number Diff line number Diff line change
Expand Up @@ -272,3 +272,5 @@ src/main/resources/
/src/main/java/com/contentstack/sdk/models/
/.vscode/
/.vscode/
/docs/
INTEGRATION-TESTS-GUIDE.md
35 changes: 30 additions & 5 deletions pom.xml
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
Original file line number Diff line number Diff line change
Expand Up @@ -277,13 +277,38 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
<configuration>
<!-- Run only API tests (*IT.java) by default -->
<includes>
<include>**/*IT.java</include>
</includes>
<!-- Tests are skipped by default; use -Dtest to specify which tests to run -->
<!-- Example: -Dtest='*IT' for integration tests, -Dtest='Test*' for unit tests -->
<skipTests>true</skipTests>
<!-- OPTIMIZED: Parallel execution with controlled concurrency -->
<parallel>classes</parallel>
<threadCount>4</threadCount>
<perCoreThreadCount>false</perCoreThreadCount>
<useUnlimitedThreads>false</useUnlimitedThreads>
<!-- Reuse forks for better performance -->
<reuseForks>true</reuseForks>
<forkCount>2</forkCount>
<!-- Increase timeout for slow tests -->
<forkedProcessTimeoutInSeconds>500</forkedProcessTimeoutInSeconds>
<!-- Better memory management -->
<!-- @{argLine} allows JaCoCo to inject its agent -->
<argLine>@{argLine} -Xmx2048m -XX:MaxMetaspaceSize=512m</argLine>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.22.2</version>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>report-only</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -382,7 +407,7 @@
</goals>
<configuration>
<dataFile>target/jacoco.exec</dataFile>
<outputDirectory>target/jacoco-ut</outputDirectory>
<!-- outputDirectory removed - uses default: target/site/jacoco/ -->
</configuration>
</execution>
</executions>
Expand Down
164 changes: 0 additions & 164 deletions src/test/java/com/contentstack/sdk/AssetLibraryIT.java

This file was deleted.

Loading
Loading

Back | FazBrowse Home | New Git URL