Skip to content

Extending tests with shellspec unit suite - #1615

Open
cedwards wants to merge 8 commits into
masterfrom
tests/unit-suite
Open

Extending tests with shellspec unit suite#1615
cedwards wants to merge 8 commits into
masterfrom
tests/unit-suite

Conversation

@cedwards

Copy link
Copy Markdown
Contributor

This introduces shellspec unit test suites that allow us to better validate function behavior.

These changes have been integrated with the new lib/ structure and call specific lib files to test only those bits.

75 tests have been defined and validated. More are pending following some function re-structuring (to be discussed separately).

@cedwards

cedwards commented Jul 30, 2026

Copy link
Copy Markdown
Contributor Author

I assume the warning tests are due to executing on GitHub actions Ubuntu environment.

They all pass when I make test on my macOS and FreeBSD environments.

Confirmed: it's the difference between BSD sed and GNU sed. Fixing.

@jdhg-orbiware jdhg-orbiware added the enhancement New feature or request label Jul 30, 2026
with:
usesh: true
prepare: |
pkg install -y git

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

git-lite will be faster here, unless there is any reason to have the bloated git

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I can change this.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe even git-tiny

Comment thread .github/workflows/unit-tests.yml
@tschettervictor

Copy link
Copy Markdown
Collaborator

My only comment would be to first go through the duplicated functions and try to merge them, and also decide on a standard naming convention for functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants