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

Port Lua tests to busted-style tests #82

Open
SquidDev opened this issue Nov 14, 2023 · 0 comments
Open

Port Lua tests to busted-style tests #82

SquidDev opened this issue Nov 14, 2023 · 0 comments

Comments

@SquidDev
Copy link
Member

Historically Cobalt has been tested by running a modified version of Lua 5.1's test suite. However, this test suite isn't especially useful, for a couple of reasons:

  • It's not especially granular, meaning either the whole test suite passes or you get an "assertion failed".
  • It doesn't document what inconsistencies we have with PUC Lua - instead we've just got snippets of code commented out and/or changed.

To resolve this, we've been slowly fleshing out a busted-style test-suite, which can be both run against Cobalt and PUC Lua.

While we've been slowly porting tests to this new framework (e.g. 90be182), it's far from complete. We should continue this work, finally removing the AssertTest system.

This might be a good time to audit some of our test suites as well and see if we can remove some of no-longer-useful tests.

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

No branches or pull requests

1 participant