<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: CAP Java: CSV data in the test/data folder not loaded... in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/cap-java-csv-data-in-the-test-data-folder-not-loaded-duirng-local-testing/qaa-p/14227290#M4927381</link>
    <description>&lt;P&gt;Data has been loaded by adding the following configuration to the default profile:&lt;/P&gt;&lt;LI-CODE lang="yaml"&gt;  dataSource.csv.paths:
    - ../test/data/**&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Here is the overall configuration of the application.yaml.&lt;/P&gt;&lt;LI-CODE lang="yaml"&gt;---
spring:
  config.activate.on-profile: default
  sql.init.platform: h2
cds:
  data-source.auto-config.enabled: false
  dataSource.csv.paths:
    - ../test/data/**&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Sep 2025 21:19:16 GMT</pubDate>
    <dc:creator>MioYasutake</dc:creator>
    <dc:date>2025-09-24T21:19:16Z</dc:date>
    <item>
      <title>CAP Java: CSV data in the test/data folder not loaded duirng local testing</title>
      <link>https://community.sap.com/t5/technology-q-a/cap-java-csv-data-in-the-test-data-folder-not-loaded-duirng-local-testing/qaq-p/14226259</link>
      <description>&lt;P&gt;Hi community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to the capire document, CSV data in test/data folder is loaded by default.&lt;/P&gt;&lt;P&gt;&lt;A href="https://cap.cloud.sap/docs/guides/databases?impl-variant=java#providing-initial-data" target="_blank" rel="noopener"&gt;https://cap.cloud.sap/docs/guides/databases?impl-variant=java#providing-initial-data&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;... next to your CDS model files. When you use&amp;nbsp;cds watch&amp;nbsp;or&amp;nbsp;cds deploy, CSV files are loaded by default from&amp;nbsp;test/data.&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;However,&amp;nbsp;CSV data in the test/data folder is not loaded during local testing (when running the service with &lt;STRONG&gt;&lt;EM&gt;mvn spring-boot:run&lt;/EM&gt;&lt;/STRONG&gt;).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MioYasutake_0-1758688967423.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/319197i69840D96B5E11818/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MioYasutake_0-1758688967423.png" alt="MioYasutake_0-1758688967423.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MioYasutake_1-1758689053125.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/319198i128EDF28754287FC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MioYasutake_1-1758689053125.png" alt="MioYasutake_1-1758689053125.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have tried adding the folllowing setting to the application.yaml and run the application with `mvn spring-boot:run -Dspring-boot.run.profiles=test`, but it's not taking effect.&lt;/P&gt;&lt;LI-CODE lang="yaml"&gt;---
spring:
  config.activate.on-profile: test
  sql.init.platform: h2
cds:
  data-source.auto-config.enabled: false
  dataSource.csv.paths:
  - test/data/**&lt;/LI-CODE&gt;&lt;P&gt;I would like to confirm whether I am missing any steps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 04:45:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cap-java-csv-data-in-the-test-data-folder-not-loaded-duirng-local-testing/qaq-p/14226259</guid>
      <dc:creator>MioYasutake</dc:creator>
      <dc:date>2025-09-24T04:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: CAP Java: CSV data in the test/data folder not loaded...</title>
      <link>https://community.sap.com/t5/technology-q-a/cap-java-csv-data-in-the-test-data-folder-not-loaded-duirng-local-testing/qaa-p/14227290#M4927381</link>
      <description>&lt;P&gt;Data has been loaded by adding the following configuration to the default profile:&lt;/P&gt;&lt;LI-CODE lang="yaml"&gt;  dataSource.csv.paths:
    - ../test/data/**&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Here is the overall configuration of the application.yaml.&lt;/P&gt;&lt;LI-CODE lang="yaml"&gt;---
spring:
  config.activate.on-profile: default
  sql.init.platform: h2
cds:
  data-source.auto-config.enabled: false
  dataSource.csv.paths:
    - ../test/data/**&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 21:19:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/cap-java-csv-data-in-the-test-data-folder-not-loaded-duirng-local-testing/qaa-p/14227290#M4927381</guid>
      <dc:creator>MioYasutake</dc:creator>
      <dc:date>2025-09-24T21:19:16Z</dc:date>
    </item>
  </channel>
</rss>

