datadriven icon indicating copy to clipboard operation
datadriven copied to clipboard

Data-Driven Testing for Go

Results 8 datadriven issues
Sort by recently updated
recently updated
newest added

This commits add some helpers to assert that we have a certain number of values and for common cases of retrieving one or two values. - - - This change...

The amount of boilerplate to run a sequence of commands in a `datadriven` test is excessive. For example, [here](https://github.com/etcd-io/raft/blob/026484c68b7bc59cd208e216d35e1ff747d24d9c/testdata/replicate_pause.txt#L10-L55) is a typical script. This is visually unsatisfying (the amount of...

enhancement
good first issue

I had a case where I had a very long SQL line (around 300k) and I silently got an empty string from datadriven. We should check `Err()` from the scanner...

We no longer show `d.Pos` when the output doesn't match: https://github.com/cockroachdb/datadriven/blob/master/datadriven.go#L364

Prior to this patch, there was no way to exercise the behavior of `-rewrite` nor how errors and sub-tests would be reported in the output of `go test -v`. This...

The datadriven framework is inspired by logictests, yet it is not used to run them. We should try to switch them over and fill in any missing pieces along the...

If you try to run a subtest and pass `-rewrite`, the outcome is bad (all tests that did not run disappear). We should either make it work (by not modifying...

* Typo fixed. - - - This change is [](https://reviewable.io/reviews/cockroachdb/datadriven/53)