You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

The following steps can be used to configure IntelliJ IDEA to build and test Daffodil:


  1. If not already installed, install the Scala plugin from JetBrains to add SBT and Scala support.

  2. With the Daffodil repository checked out, select

       File > New > Project from Existing Sources...

    and select the Daffodil repository directory.

  3. We want to configure the project to use SBT for configuration and building, so select:

       Import project from external model

    and select sbt.

  4. Set the following settings:

    1. Download Library sources: Checked

    2. Download sbt sources: Unchecked

    3. Use sbt shell for imports: Checked

    4. Use sbt shell for builds: Checked

    5. Allow overriding sbt version: Unchecked

    6. Global sbt settings > Maximum heap size: 6144 MB
      
  5. Click Finish.

  6. Exit IntelliJ and restart it, selecting the Daffodil project.

  7. An alert will display stating "sbt projects need to be imported". Select Enable Auto-Import.

  8. After the sync is complete in the Build tab, ensure that the project builds:

       Build > Build Project

  9. To add a configuration to run all JUnit tests, select:

       Run > Edit Configurations > + (plus sign) > JUnit

    and apply the following settings:

    1. Name: All Daffodil Tests

    2. Test Kind: Pattern

    3. Pattern: ^(?!.*TestCLI.*).*$

    4. Search for tests: In whole project
      
  10. Run tests via:

       Run > All Daffodil Tests

To setup to work with Daffodil/XML, you can start with the following:

  1. Go to File > Settings > Editor > File Types
  2. In the Recognized file types box, scroll down to XML , select it and under the Registered patterns box, click the + sign, and add *.dfdl.xsd. Repeat for *.tdml.





  • No labels