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

Turn example main program into rust test #46

Merged
merged 3 commits into from
Nov 6, 2023

Conversation

Kieranoski702
Copy link
Contributor

@Kieranoski702 Kieranoski702 commented Nov 5, 2023

As discussed in #34, I have turned the example program main into a test called chuffed_basic_run.rs.

I have decided to keep the main.rs file for now as I believe it will be useful for further development. The test simply checks that running the ffi bindings/wrappers does not cause a crash. In order to show the test case has passed I have used an assert!(true) at the end of the test function as without any kind of assert the test doesn't seem to run. Is there a better way of doing this? Happy to get suggestions on this as well as the test as a whole

@ChrisJefferson
Copy link
Contributor

I think this test is good enough to make sure everything builds and runs on github actions, which is good enough for now!

@ozgurakgun ozgurakgun mentioned this pull request Nov 6, 2023
@ozgurakgun
Copy link
Contributor

if you merge main into this pr @Kieranoski702 we should be able to see whether the code coverage CI is fixed or not. thanks!

@ozgurakgun
Copy link
Contributor

I just did this, beware @Kieranoski702 before you push to the main branch of your fork (i.e. pull first).

Also working on the main branch is not the best idea (unless when you are testing CI setup I suppose). Make a named branch on your fork instead.

@ozgurakgun
Copy link
Contributor

@ozgurakgun ozgurakgun merged commit 87422ed into conjure-cp:main Nov 6, 2023
8 checks passed
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.

4 participants