Creating New Packages

Testing Bricks

CODED FLOWS does not include built-in testing modules or predefined test directories. As a package developer, you'll need to implement your own testing structure using frameworks like pytest. A common approach is to create a dedicated tests/ directory at the root level of your package with test files that correspond to your Bricks.

For example, tests/test_brick_name1.py would contain tests for Bricks/brick_name1.py. To execute tests, simply run pytest from your package root directory. You can integrate these tests into your CI/CD pipeline by adding appropriate configuration files (like .github/workflows/tests.yml for GitHub Actions) that install pytest dependencies and run the test suite. This allows for automated testing during pull requests or deployments, ensuring your CODED FLOWS package maintains reliability as it evolves.

Previous
Documenting Package & Bricks