Use the {def} and {ref} features of run_produces_ok() to look for
regexes only in the correct sections. This improves the ability of the
test to detect regressions.
- Documentation fix: TestEnvironment::build_db() doesn't take a parameter
- t/100: check for the temporary directory automatically created, not
for t/db/.
- Remove .gitignore of t/db/
And fix a problem in a test where an ident where wrongly identified by
ctags. It is fixed in the new ctags version.
Signed-off-by: Maxime Chretien <maxime.chretien@bootlin.com>
- Create new class t/TestEnvironment.pm. A TestEnvironment instance
owns a temporary Git repo and a temporary Elixir database directory.
- Update t/100-basic.t to use TestEnvironment.
- Add constant MUST_SUCCEED so `run_produces_ok()` calls are more
self-documenting
- Added test helpers in t/TestHelpers.pm
- Added basic test of update.py and query.py in t/100-basic.t
- Updated README:
- Added automated-testing section
- Formatted identifiers (i.e., added backticks)