Skip to content

Mobile Unit Tests

oguzpancuk edited this page Dec 20, 2024 · 1 revision

1. Profile-test.js

  • Purpose: Tests the Profile component.
  • Key Features:
    • Mocks AuthContext to simulate user authentication.
    • Verifies rendering and interactions in the Profile page.

2. StockDetails.test.js

  • Purpose: Tests the StockDetails component.
  • Key Features:
    • Uses mocked NavigationContainer and fetch for testing.
    • Includes multiple test cases for data rendering and navigation behavior.

3. Post.test.js

  • Purpose: Tests the Post component.
  • Key Features:
    • Checks rendering, event handling, and data flow in posts.
    • Mocks node-fetch for API call simulation.

4. Login-test.js

  • Purpose: Basic test for the Login component.
  • Key Features:
    • Ensures correct rendering of the login page.
    • Uses AuthProvider for context simulation.

5. CreatePost.test.js

  • Purpose: Tests the CreatePost component.
  • Key Features:
    • Simulates user authentication via useAuth hook.
    • Tests form interaction and submission behavior.

6. Portfolio.test.js

  • Purpose: Tests the Portfolio component.
  • Key Features:
    • Mocks authentication context to verify portfolio access.
    • Includes tests for rendering and portfolio management.

7. PortfolioDetails.test.js

  • Purpose: Tests the PortfolioDetails component.
  • Key Features:
    • Focuses on detailed views of portfolios.
    • Uses mock data for authentication and rendering tests.

8. Community.test.js

  • Purpose: Tests the Community component.
  • Key Features:
    • Covers community-related functionalities like user interaction.
    • Tests navigation and context handling.

9. Markets.test.js

  • Purpose: Tests the Markets component.
  • Key Features:
    • Verifies market data visualization and interactions.
    • Includes navigation and API data fetching tests.

10. Login.test.js

  • Purpose: Detailed tests for the Login component.
  • Key Features:
    • Focuses on advanced cases, including error handling and alerts.
    • Mocks animations and context interactions.

📋 Lab Reports

📆 Meeting Notes

🧪 Lab Meetings

🗓️ General Meetings

⚙️ Backend Meetings

📝 Milestone Reports

📑 Project Artifacts

📖 Manuals

📑 Other Artifacts

📋 Software Requirements Specification

📊 Software Design Documents

✏️ User Scenarios & Mockups

🗂 Project Plan

🧪 Unit Tests

📜 Docs

👥 Team

SemanticFlix Archieve

📝 Milestone Reports

📆 Meeting Notes

🧾 Requirements

Project Plan

📊 Diagrams

👥 Team

📝 Researches

Repository Documentations

📁 Templates

Clone this wiki locally