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

Add nvim_oxi::tests::build() #201

Merged
merged 9 commits into from
Dec 21, 2024
Merged

Add nvim_oxi::tests::build() #201

merged 9 commits into from
Dec 21, 2024

Conversation

noib3
Copy link
Owner

@noib3 noib3 commented Dec 21, 2024

Problem

Having to manually call cargo b --features=.. before running the tests sucks.

Solution

Create a build() function to be used as the body of a build script that automatically builds the dynamic library to test.

All the tests remain unchanged, and a build.rs is added to the crate housing all the integration tests with the following contents:

// build.rs
fn main() -> Result<(), nvim_oxi::tests::BuildError> {
    nvim_oxi::tests::build()
}

@noib3 noib3 merged commit 8e92d19 into main Dec 21, 2024
12 checks passed
@noib3 noib3 deleted the tests-build-script branch December 21, 2024 19:38
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.

1 participant