Skip to content

Commit

Permalink
back to regular
Browse files Browse the repository at this point in the history
> [email protected] test /Users/mchadwick/Library/Mobile Documents/com~apple~CloudDocs/Code/web/deckdle
> npx cypress run --env host=local

====================================================================================================

  (Run Starting)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Cypress:        13.15.1                                                                        │
  │ Browser:        Electron 118 (headless)                                                        │
  │ Node Version:   v20.12.2 (/Users/mchadwick/.local/share/mise/installs/node/20.12.2/bin/node)   │
  │ Specs:          10 found (00-basic/00-init.cy.js, 00-basic/01-modals.cy.js, 00-basic/02-settin │
  │                 gs.cy.js, 00-basic/03-gamemodes.cy.js, 00-basic/04-combo.cy.js, 00-basic/05-ac │
  │                 tions.cy.js, 00-basic/06-undo.cy.js, 01-cards/00-tableau.cy.js, 01-cards/01-st │
  │                 ock.cy.js, 01-cards/02-...)                                                    │
  │ Searched:       cypress/integration/**/*.cy.js                                                 │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

────────────────────────────────────────────────────────────────────────────────────────────────────

  Running:  00-basic/00-init.cy.js                                                         (1 of 10)

  00-basic
    init
      ✓ should load web app with correct global components (477ms)

  1 passing (517ms)

  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        1                                                                                │
  │ Passing:      1                                                                                │
  │ Failing:      0                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  0                                                                                │
  │ Video:        false                                                                            │
  │ Duration:     0 seconds                                                                        │
  │ Spec Ran:     00-basic/00-init.cy.js                                                           │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

────────────────────────────────────────────────────────────────────────────────────────────────────

  Running:  00-basic/01-modals.cy.js                                                       (2 of 10)

  00-basic
    modals
      ✓ should load navapps modal (480ms)
      ✓ should load help modal (341ms)
      ✓ should load stats modal (318ms)

  3 passing (1s)

  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        3                                                                                │
  │ Passing:      3                                                                                │
  │ Failing:      0                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  0                                                                                │
  │ Video:        false                                                                            │
  │ Duration:     1 second                                                                         │
  │ Spec Ran:     00-basic/01-modals.cy.js                                                         │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

────────────────────────────────────────────────────────────────────────────────────────────────────

  Running:  00-basic/02-settings.cy.js                                                     (3 of 10)

  00-basic
    modals
      settings
        ✓ should load settings modal (317ms)
        ✓ should toggle all switch-type settings (1324ms)

  2 passing (2s)

  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        2                                                                                │
  │ Passing:      2                                                                                │
  │ Failing:      0                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  0                                                                                │
  │ Video:        false                                                                            │
  │ Duration:     1 second                                                                         │
  │ Spec Ran:     00-basic/02-settings.cy.js                                                       │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

────────────────────────────────────────────────────────────────────────────────────────────────────

  Running:  00-basic/03-gamemodes.cy.js                                                    (4 of 10)

  00-basic
    gamemodes
      ✓ should load daily golf (250ms)
      ✓ should switch to free play and back to daily (280ms)

  2 passing (581ms)

  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        2                                                                                │
  │ Passing:      2                                                                                │
  │ Failing:      0                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  0                                                                                │
  │ Video:        false                                                                            │
  │ Duration:     0 seconds                                                                        │
  │ Spec Ran:     00-basic/03-gamemodes.cy.js                                                      │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

────────────────────────────────────────────────────────────────────────────────────────────────────

  Running:  00-basic/04-combo.cy.js                                                        (5 of 10)

  00-basic
    combo
      ✓ should show no combo meter on load (231ms)
      - should show correct x2 multiplier when two valid cards are played in a row
      - should show correct x(n*5) multiplier when an appropriate combo is achieved

  1 passing (261ms)
  2 pending

  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        3                                                                                │
  │ Passing:      1                                                                                │
  │ Failing:      0                                                                                │
  │ Pending:      2                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  0                                                                                │
  │ Video:        false                                                                            │
  │ Duration:     0 seconds                                                                        │
  │ Spec Ran:     00-basic/04-combo.cy.js                                                          │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

────────────────────────────────────────────────────────────────────────────────────────────────────

  Running:  00-basic/05-actions.cy.js                                                      (6 of 10)

  00-basic
    actions
      ✓ should create a StockAction when the stock is clicked (414ms)
      ✓ should create a TableauAction when a valid tableau card is clicked (361ms)
      ✓ should create an UndoAction when the undo button is clicked (405ms)

  3 passing (1s)

  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        3                                                                                │
  │ Passing:      3                                                                                │
  │ Failing:      0                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  0                                                                                │
  │ Video:        false                                                                            │
  │ Duration:     1 second                                                                         │
  │ Spec Ran:     00-basic/05-actions.cy.js                                                        │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

────────────────────────────────────────────────────────────────────────────────────────────────────

  Running:  00-basic/06-undo.cy.js                                                         (7 of 10)

  00-basic
    undo
      golf
        ✓ should undo a move (443ms)

  1 passing (499ms)

  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        1                                                                                │
  │ Passing:      1                                                                                │
  │ Failing:      0                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  0                                                                                │
  │ Video:        false                                                                            │
  │ Duration:     0 seconds                                                                        │
  │ Spec Ran:     00-basic/06-undo.cy.js                                                           │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

────────────────────────────────────────────────────────────────────────────────────────────────────

  Running:  01-cards/00-tableau.cy.js                                                      (8 of 10)

  01-cards
    tableau
      golf
        ✓ should have 7 columns (233ms)
        ✓ should have 35 cards (145ms)
        ✓ should have available card at the bottom of each column (146ms)
        ✓ should highlight available card on hover (1240ms)
        ✓ should remove valid available card and add to base (254ms)
        ✓ should fail to remove invalid available card (225ms)
        ✓ should fail to remove unavailable card (196ms)

  7 passing (3s)

  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        7                                                                                │
  │ Passing:      7                                                                                │
  │ Failing:      0                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  0                                                                                │
  │ Video:        false                                                                            │
  │ Duration:     2 seconds                                                                        │
  │ Spec Ran:     01-cards/00-tableau.cy.js                                                        │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

────────────────────────────────────────────────────────────────────────────────────────────────────

  Running:  01-cards/01-stock.cy.js                                                        (9 of 10)

  01-cards
    stock
      golf
        ✓ should begin with 16 cards (227ms)
        ✓ should have a back card on top (133ms)
        ✓ should remove top card and add to base (212ms)
        ✓ should fail to remove when empty (1373ms)

  4 passing (2s)

  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        4                                                                                │
  │ Passing:      4                                                                                │
  │ Failing:      0                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  0                                                                                │
  │ Video:        false                                                                            │
  │ Duration:     2 seconds                                                                        │
  │ Spec Ran:     01-cards/01-stock.cy.js                                                          │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

────────────────────────────────────────────────────────────────────────────────────────────────────

  Running:  01-cards/02-base.cy.js                                                        (10 of 10)

  01-cards
    base
      golf
        ✓ should begin with 2 of hearts card (260ms)

  1 passing (298ms)

  (Results)

  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        1                                                                                │
  │ Passing:      1                                                                                │
  │ Failing:      0                                                                                │
  │ Pending:      0                                                                                │
  │ Skipped:      0                                                                                │
  │ Screenshots:  0                                                                                │
  │ Video:        false                                                                            │
  │ Duration:     0 seconds                                                                        │
  │ Spec Ran:     01-cards/02-base.cy.js                                                           │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘

'local' cypress run done on 'deckdle'

====================================================================================================

  (Run Finished)

       Spec                                              Tests  Passing  Failing  Pending  Skipped
  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ ✔  00-basic/00-init.cy.js                   519ms        1        1        -        -        - │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  00-basic/01-modals.cy.js                 00:01        3        3        -        -        - │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  00-basic/02-settings.cy.js               00:01        2        2        -        -        - │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  00-basic/03-gamemodes.cy.js              583ms        2        2        -        -        - │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  00-basic/04-combo.cy.js                  263ms        3        1        -        2        - │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  00-basic/05-actions.cy.js                00:01        3        3        -        -        - │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  00-basic/06-undo.cy.js                   501ms        1        1        -        -        - │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  01-cards/00-tableau.cy.js                00:02        7        7        -        -        - │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  01-cards/01-stock.cy.js                  00:02        4        4        -        -        - │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  01-cards/02-base.cy.js                   300ms        1        1        -        -        - │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘
    ✔  All specs passed!                        00:11       27       25        -        2        -   for ci
  • Loading branch information
michaelchadwick committed Oct 26, 2024
1 parent 08fbccc commit 7bcdc20
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,21 @@ jobs:
cache: pnpm
- name: Install Dependencies
run: pnpm install
- name: Cypress run
uses: cypress-io/github-action@v6
# env:
# COVERAGE: true
- name: Run Tests
run: pnpm test
env:
COVERAGE: true
# - name: Store Code Coverage
# uses: actions/upload-artifact@v4
# with:
# name: coverage-${{matrix.workspace}}
# path: ./${{matrix.workspace}}/coverage
# path: ./packages/${{matrix.workspace}}/coverage
# retention-days: 1
# - uses: actions/upload-artifact@v4
# if: failure()
# with:
# name: replay-${{matrix.workspace}}-test.json
# path: ./${{matrix.workspace}}/test-execution-*.json
# path: ./packages/${{matrix.workspace}}/test-execution-*.json
# retention-days: 7

# upload-coverage:
Expand All @@ -79,7 +79,7 @@ jobs:
# - uses: actions/checkout@v4
# - uses: actions/download-artifact@v4
# with:
# name: coverage
# name: coverage-frontend
# path: coverage
# - run: ls -lh
# - run: ls -lh coverage
Expand Down

0 comments on commit 7bcdc20

Please sign in to comment.