miller/go/regtest
2021-10-30 23:18:05 -04:00
..
cases Make fmtnum accept C-style printf format strings for backward compatibility (#717) 2021-10-30 23:18:05 -04:00
cases-flaky-in-ci/verb-join-prepipe Misc neatens; --hi/--ho as shorthand alternatives to --implicit-csv-header and --headerless-csv-output (#673) 2021-09-21 22:30:46 -04:00
cases-non-windows More C -> Go regtest iteration (#698) 2021-10-13 07:51:28 -04:00
cases-pending-go-port Make fmtnum accept C-style printf format strings for backward compatibility (#717) 2021-10-30 23:18:05 -04:00
cases-pending-windows Date-time-related issues: 331, 332, 359 (#704) 2021-10-20 21:48:26 -04:00
expected Make reg-test files relocatable (#493) 2021-04-13 16:23:10 -04:00
input New mlr -S/-A/-O type-inference flags to replace mlr put/filter -S/-F (#713) 2021-10-27 23:50:12 -04:00
README.md Accept more emit cases (#606) 2021-07-24 09:38:34 -04:00

Miller regression tests

There are a few files unit-tested with Go's testing package -- a few dozen cases total.

The vast majority of Miller tests, though -- thousands of cases -- are tested by running scripted invocations of mlr with various flags and inputs, comparing against expected output, and checking the exit code back to the shell.

How to run the regression tests, in brief

Note: while this README.md file is within the go/regtest/ subdirectory, all paths in this file are written from the perspective of the user being cd'ed into the go/ directory, i.e. this directory's parent directory.

  • mlr regtest --help

  • go test -- TODO -- also comment

Items for the duration of the Go port

  • mlr regtest -c ... runs the C version of Miller from the local checkout

More details

TODO: needs to be written up

alias mr='mlr regtest'
mr
mr regtest/cases/foo
mr -v regtest/cases/foo
mr -cj regtest/cases/foo/0003
mr -gj regtest/cases/foo/0003
mr -gp regtest/cases/foo/0003
...
mr -gp regtest/cases/foo
git diff
git reset --hard

Creating new cases

TODO: needs to be written up