Skip to content

tests: improve test runner and testsuite isolation#2016

Merged
Frenzie merged 1 commit into
koreader:masterfrom
benoit-pierre:pr/better_testsuite_isolation
Jan 9, 2025
Merged

tests: improve test runner and testsuite isolation#2016
Frenzie merged 1 commit into
koreader:masterfrom
benoit-pierre:pr/better_testsuite_isolation

Conversation

@benoit-pierre

@benoit-pierre benoit-pierre commented Jan 8, 2025

Copy link
Copy Markdown
Member
  • initial LUA paths are now setup by the runner itself, so it can be executed directly without needing to manually set them before
  • patch the LUA paths before actually executing the tests to remove the testsuite specific entries (e.g. spec/rocks/…), ensuring tests only have access to shipped packages

This change is Reviewable

- initial LUA paths are now setup by the runner itself, so it can
  be executed directly without needing to manually set them before
- patch the LUA paths before actually executing the tests to remove
  the testsuite specific entries (e.g. `spec/rocks/…`), ensuring
  tests only have access to shipped packages
@benoit-pierre

Copy link
Copy Markdown
Member Author

With this PR the testsuite would fail with the initial version of #2015 (prevent importing a test-only package: dkjson), but it would not help when using lfs instead of koreader-lfs like in koreader/koreader#13004, even after updating busted to master (lunarmodules/busted@a144124, to get lunarmodules/busted#654, which does not seem to work, as even some of the added busted tests don't pass).

@Frenzie Frenzie merged commit 7ecda58 into koreader:master Jan 9, 2025
@benoit-pierre benoit-pierre deleted the pr/better_testsuite_isolation branch January 9, 2025 17:16
benoit-pierre added a commit to benoit-pierre/koreader that referenced this pull request Jan 25, 2025
benoit-pierre added a commit to benoit-pierre/koreader that referenced this pull request Jan 25, 2025
benoit-pierre added a commit to benoit-pierre/koreader that referenced this pull request Jan 25, 2025
Frenzie pushed a commit to koreader/koreader that referenced this pull request Jan 25, 2025
Commodore64user pushed a commit to Commodore64user/KOReader_fork that referenced this pull request Jan 27, 2025
0xstillb pushed a commit to 0xstillb/koreader-thai that referenced this pull request May 9, 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.

2 participants