Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add tests (wip) #143

Draft
wants to merge 17 commits into
base: master
Choose a base branch
from
Draft

feat: add tests (wip) #143

wants to merge 17 commits into from

Conversation

aarondill
Copy link
Contributor

@aarondill aarondill commented Jan 16, 2024

These use plenary's busted-like testing framework

As such, they require that plenary is installed to run.

Note: this is not a dependency for normal runtime.

Should I add a CI check that requires all tests are passing?

These use plenary's busted-like testing framework

As such, they require that plenary is installed to run.
@aarondill
Copy link
Contributor Author

@amirbilu is this something you're willing to pursue, or is it not worth putting my effort into?

This clarifies usage of the tests directory and plenary/busted's interface
`None` should be the special value `NONE`
replace with a TODO comment
if not running from the root
this commit includes tests for str_to_lines and lines_to_str

It include `pending` tests for the remaining utils
@aarondill
Copy link
Contributor Author

Please note that the current goal of the implemented tests is not to ensure that methods work right (as I've discovered and documented several bugs), but to match the current state of the codebase. This way, when a change is made, it can be quickly tested to ensure that it doesn't break anything else.

this was a copy paste error
note: these are all wrong because the /tests directory isn't under /lua
@amirbilu
Copy link
Contributor

@aarondill this is indeed interesting

@aarondill
Copy link
Contributor Author

I haven't had the opportunity to work on this recently due to real life things. I'll continue to work on this when I can, but I would appreciate contributions if you'd like to accelerate the process.

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