Sweet.apex

  • Docs
  • Tutorials
Docs Menu
  • Sweet.apex Core
    • Transpilation
    • Grammar
    • Command
    • Config
  • Features
    • Action
    • Apex Doc
    • Array Creation
    • Aspect
    • Cast
    • Default Value
    • Enum
    • File
    • Function
    • Identity
    • Injection
    • Lambda
    • Log
    • Mod
    • Not Null
    • Operator
    • Optional
    • Reflection
    • Rethrow
    • Switch
    • Template String
    • Template
    • Script
    • Tagged String
    • Annotation
    • Nullable
    • Var
    • Val
    • Map Access
    • Constructor
    • Transaction
    • Destructure
    • Import Static
    • Pipeline
    • Varargs
    • Patch
    • Import As
  • Plugin Development
    • Feature
    • Test Case

Test Case Guide

Test Case

Test Cases

Test cases are written with jasmine framework. You need to put your test case in spec directory.

Run Test Cases

Run the command to start the test cases.

jasmine

Generate Test Data

Make sure that you generate the test data with only the target feature enabled

node transpile.js resource/ build/ mod -c -e

Run Integration Test

Integration test cases are listed under integration directory.

Run the below code to start the integration test.

./run_integration_test.sh

Contribute on Github! Edit this section.