[PR #1042] [MERGED] Automate running local tests #1223

Closed
opened 2026-02-25 21:37:36 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/cypht-org/cypht/pull/1042
Author: @jonocodes
Created: 5/22/2024
Status: Merged
Merged: 10/1/2024
Merged by: @jonocodes

Base: masterHead: test-env-vars


📝 Commits (1)

  • c0751e1 Creating script to locally run unit tests in sqlite

📊 Changes

4 files changed (+54 additions, -7 deletions)

View changed files

tests/phpunit/data/schema.sql (+6 -0)
tests/phpunit/data/seed.sql (+6 -0)
📝 tests/phpunit/mocks.php (+7 -7)
tests/phpunit/run.sh (+35 -0)

📄 Description

Pullrequest

This decouples tests from CI.
The run.sh script can be run anywhere and uses environment variables instead of modifying config files in place.
Currently only supports sqlite.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/cypht-org/cypht/pull/1042 **Author:** [@jonocodes](https://github.com/jonocodes) **Created:** 5/22/2024 **Status:** ✅ Merged **Merged:** 10/1/2024 **Merged by:** [@jonocodes](https://github.com/jonocodes) **Base:** `master` ← **Head:** `test-env-vars` --- ### 📝 Commits (1) - [`c0751e1`](https://github.com/cypht-org/cypht/commit/c0751e113568d4b597e568a3d9da4a02a60d7b15) Creating script to locally run unit tests in sqlite ### 📊 Changes **4 files changed** (+54 additions, -7 deletions) <details> <summary>View changed files</summary> ➕ `tests/phpunit/data/schema.sql` (+6 -0) ➕ `tests/phpunit/data/seed.sql` (+6 -0) 📝 `tests/phpunit/mocks.php` (+7 -7) ➕ `tests/phpunit/run.sh` (+35 -0) </details> ### 📄 Description ## Pullrequest This decouples tests from CI. The run.sh script can be run anywhere and uses environment variables instead of modifying config files in place. Currently only supports sqlite. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-25 21:37:36 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#1223
No description provided.