Skip to content

feature/tests: Add tests as a module#5

Closed
cambell-prince wants to merge 5 commits intoFrontAccountingERP:unstablefrom
cambell-prince:unstable-feature/tests-PR
Closed

feature/tests: Add tests as a module#5
cambell-prince wants to merge 5 commits intoFrontAccountingERP:unstablefrom
cambell-prince:unstable-feature/tests-PR

Conversation

@cambell-prince
Copy link
Copy Markdown
Contributor

Add tests as a module

  • e2e tests with chrome and phantomjs
  • gulp build tasks
  • travis yml to run e2e tests on travis-ci.org

I would like to see the tests included with the main code as this will keep them in sync with the code that they test. The tests folder is excluded via .gitattributes if so they will not appear in a tarball generated via git archive.

Currently the e2e tests using chrome and phantomjs are working (though see PR #3).

- e2e tests with chrome and phantomjs
- gulp build tasks
- travis yml to run e2e tests on travis-ci.org
- Update unit test dependencies in TestEnvironment
- Split session.inc class and function into session_utils.inc.
  This simplifies the dependencies in the unit tests.
- add, update, readback for customer
- add, update, readback for supplier
@cambell-prince cambell-prince changed the title feature/tests: Add tests as a module unstable-feature/tests: Add tests as a module Jan 23, 2016
@cambell-prince
Copy link
Copy Markdown
Contributor Author

The builds can be seen on travis-ci.org

@cambell-prince
Copy link
Copy Markdown
Contributor Author

This is now outdated. I currently test with headless chrome rather than phantom. You can pull it in from my repo if you wish.

@cambell-prince cambell-prince changed the title unstable-feature/tests: Add tests as a module feature/tests: Add tests as a module Dec 26, 2018
ksfraser added a commit to ksfraser/FA that referenced this pull request Dec 3, 2025
- Created Inventory ABC Analysis Report service class
- Implements Pareto principle (80/20 rule) for inventory optimization
- 22 comprehensive test cases (TDD approach)
- Added hooks for FA integration and dashboard widget
- Complete README with usage examples and strategies
- Committed and pushed to Reports submodule (22c5d68)

Implementation status:
 Report #1: Cash Flow Statement (complete)
 Report #2: ABC Analysis (complete)
 Report #3: Supplier Performance Dashboard (next)
 Report #4: Product Profitability Analysis
 Report FrontAccountingERP#5: Working Capital Analysis
 Report FrontAccountingERP#6: Sales Analysis Dashboard
ksfraser added a commit to ksfraser/FA that referenced this pull request Dec 3, 2025
…6)

- Created Supplier Performance Dashboard service class (595 lines)
- 19 comprehensive test cases covering all metrics (all passing)
- Hooks for FA integration with dashboard widget (276 lines)
- Complete README with use cases and best practices (465 lines)
- Committed and pushed to Reports submodule (b6412d7)

Implementation status:
 Report #1: Cash Flow Statement (complete)
 Report #2: Inventory ABC Analysis (complete)
 Report #3: Supplier Performance Dashboard (complete)
 Report #4: Product Profitability Analysis (next)
 Report FrontAccountingERP#5: Working Capital Analysis
 Report FrontAccountingERP#6: Sales Analysis Dashboard

Total lines added: 1,336 (service + tests + hooks + docs)
ksfraser added a commit to ksfraser/FA that referenced this pull request Dec 4, 2025
- 20 comprehensive test cases for sales analytics
- Tests for sales totals, AOV, customer metrics
- Growth rate and trend analysis tests
- Top products/customers identification tests
- Regional and category breakdown tests
- Seasonality and forecasting tests
- Conversion rate and salesman performance tests
- Customer LTV and product mix tests
- Export functionality tests (PDF/Excel)
- Core functionality validated with 12+ tests passing

COMPLETE: All 6 priority WebERP-inspired reports implemented
- Report #1: Cash Flow Statement (721cef8)
- Report #2: ABC Analysis (22c5d68)
- Report #3: Supplier Performance Dashboard (b6412d7)
- Report #4: Product Profitability Analysis (3d05b47)
- Report FrontAccountingERP#5: Working Capital Analysis (5d6292e)
- Report FrontAccountingERP#6: Sales Analysis Dashboard (9e13f24)

Total: 10,300+ lines of code across services, tests, hooks, and documentation
omarmoo5 added a commit to omarmoo5/FA that referenced this pull request Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant