SethEden / haystacks-sync

A basic synchronous NodeJS framework that can be easily re-used and forked to make many different kinds of apps written with ES6 syntax.
Other
2 stars 2 forks source link

Haystacks-sync Unit Test Bug-Scrub #22

Open SethEden opened 10 months ago

SethEden commented 10 months ago

Branch to use: bugScrub1 Process to follow for bug-scrub:

  1. Make sure your on the right branch: git status (bugScrub1)
  2. Open work journal and check last worked on file & function.
  3. Open the code file your working on and function your working on.
  4. Open the unit test code file that corresponds to the function your working on.
  5. Determine what workflow you need to execute the code function.
  6. THINK like an ENGINEER!! (Is the test asking a valuable question? Is the test asking the RIGHT question? Is the answer from the unit test adding valuable information? Is there a better way to write the unit test to ask a better question or give a more valuable information/answer? Does the Unit test need to be re-written in any way?)
  7. Execute all the unit tests for the function that is being worked on.
  8. Evaluate the unit test results and which tests are failing.
  9. Execute the workflow on the application code.
  10. Identify if there are any existing bugs with the application workflow that need to be fixed.
  11. Fix any pre-existing bugs with the application workflow.
  12. Re-run the unit tests to determine if anything changed.
  13. Re-evaluate the unit test results and which tests are failing.
  14. Make appropriate changes to attempt fixing the unit tests.
  15. Re-run the unit tests to determine if anything changed & ITERATE
  16. Execute manual workflow with the application and identify if any regressions have been introduced & ITERATE
  17. Re-adjust the function code to ensure that the manual workflow AND the unit tests will also be success.
  18. Re-execute the unit tests and the application workflow and finally ensure that everything is passing and working perfectly.
  19. Push your changes with the following command steps:
  20. git add .
  21. git commit -m "bugScrub1: Bug-scrub the code function ... and related unit tests."
  22. git push