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

Test improvements #3

Open
CapsAdmin opened this issue Oct 31, 2020 · 0 comments
Open

Test improvements #3

CapsAdmin opened this issue Oct 31, 2020 · 0 comments

Comments

@CapsAdmin
Copy link
Owner

Using it and describe doesn't work well for me because I spend too much time thinking about how to describe what's going on. This is especially difficult for me since I'm not familiar with compiler and typesystem terms.

I want to sort tests by fundamental to high level to avoid test error explosions.

Move tests from "misc" files to appropriate files.

Remove the need to name tests. For instance this feels unnecessary as the code is self explanatory.

test("any should be a subset of foo", function()
    assert(any:SubsetOf(foo))
end)

It can (probably should) also be made more self explanatory.

assert(any:IsSubsetOf(foo) == true)

Not sure if test(function() end) is nesseceary if I make sure tests are sorted properly.

CapsAdmin added a commit that referenced this issue Oct 31, 2020
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

No branches or pull requests

1 participant