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 unit testing framework #230

Merged
merged 4 commits into from
Sep 21, 2023

Conversation

charliefoxtwo
Copy link
Member

This PR:

  • adds luaunit, allowing us to write unit tests for our code
  • adds unit tests for the TCP/UDP server code. These tests aren't thorough (though maybe they could be improved with better mocks of the lua socket), but they're a start
  • adds an extension to the recommendation list for running these unit tests in vs code
  • adds a github action which will run these unit tests on push

At the moment, luaunit is copied in as source. An alternative way to use it is via luarocks, however I've had great difficulty getting it to work on windows (as have others, as far as I can tell). For now, copying over the single source file seems like the simplest way to do things.

@jdahlblom jdahlblom merged commit ef74f4a into DCS-Skunkworks:master Sep 21, 2023
@charliefoxtwo charliefoxtwo deleted the feature/unit-tests branch September 21, 2023 16:47
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