Nujan IDE
  • 1. Introduction
  • 2. Getting Started with IDE
    • 2.1 Create your First Project
    • 2.2 Coding Interface
    • 2.3 File Types
    • 2.4 Log / Terminal
    • 2.5 Build and Deploy
      • A. Sandbox Environment
      • B. TestNet Environment
      • C. MainNet Environment
    • 2.6 Precautions for MainNet
    • 2.7 Unit Testing
  • 3. Frequently Asked Questions (FAQ)
  • 4. Community and Support
Powered by GitBook
On this page
  1. 2. Getting Started with IDE

2.7 Unit Testing

Previous2.6 Precautions for MainNetNext3. Frequently Asked Questions (FAQ)

Last updated 1 year ago

Unit testing is a systematic and automated validation approach aimed at verifying the accuracy and dependability of discrete components or units within a smart contract. By crafting specialized test cases, developers can isolate these individual units and meticulously assess their behavior under controlled input scenarios. This rigorous and well-structured testing process aids in early defect detection, promotes code modularity, and fosters the creation of a robust and secure blockchain application, all while seamlessly integrating with continuous integration and deployment practices. 


Where to Write Test Cases and Run Tests:

Step 1: Write unit tests in “.spec.ts”
 extension files.

Step 2 : Go to “Unit Test” from the 
 Icon Panel

Step 3 : Click on Run to Execute 
 Test cases and ensure 
 Complaince