Fusion icon indicating copy to clipboard operation
Fusion copied to clipboard

Look into fuzzing as part of our testing suite

Open dphfox opened this issue 2 years ago • 0 comments

Currently we have unit tests that are a little under-encompassing, for example;

it("should be able to store arbitrary values", function()
	local scope = {}
	local value = Value(scope, 0)
	expect(peek(value)).to.equal(0)

	value:set(10)
	expect(peek(value)).to.equal(10)

	value:set("foo")
	expect(peek(value)).to.equal("foo")
end)

It'd be good to try plugging a wider range of values into these tests. We could also look into more complex kinds of fuzzing such as constructing random dependency graphs for testing reactivity.

dphfox avatar Sep 02 '23 23:09 dphfox