Add shell script integration testing infrastructure#1899
Open
neilsh wants to merge 4 commits intoOnionUI:mainfrom
Open
Add shell script integration testing infrastructure#1899neilsh wants to merge 4 commits intoOnionUI:mainfrom
neilsh wants to merge 4 commits intoOnionUI:mainfrom
Conversation
- Dockerfile for Alpine-based test environment - BATS helper setup (mocks.bash, test_helper.bash) - Makefile targets: test-shell, test-shell-debug - CI Workflow for automated testing
- pacman_install.bats: Tests for JSON config parsing - apply.bats: Tests for common package installer
- Guest Mode: Comprehensive tests for switching, time persistence, and launching - Theme Switcher: Tests for theme extraction and preview generation - Added guest_mode_helper.bash and theme_helper.bash for test setup
874115c to
786ad9f
Compare
tGecko
approved these changes
Jan 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Shell Script Integration Testing Infrastructure
Implements a Docker-based integration testing framework for Onion shell scripts using BATS (Bash Automated Testing System). This adds a few example tests.
Features
shenvironmentbats-support,bats-assert, andbats-filefor expressive assertionstest_helper.bash,mocks.bash) and feature-specific helpersTest Coverage
pacman_install.shinstall.sh,saveTime.sh,loadTime.sh,launch.sh)apply.shthemes_extract_theme.shthemes_extract_previews.shTotal: 23 tests
Usage
Files Added/Modified
test/shell-tests/- Test directory with Dockerfile, README, and organized test filesMakefile- Newtest-shellandtest-shell-debugtargets.github/workflows/test-shell.yml- CI workflow for shell tests