mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Unit tests
- New command line parser is live for DOM access and DOM testing.
This commit is contained in:
parent
0dc73d759b
commit
b01906cd62
2 changed files with 4 additions and 7 deletions
|
@ -213,12 +213,8 @@ int Context::initialize (int argc, const char** argv)
|
||||||
a3.categorize ();
|
a3.categorize ();
|
||||||
a3.dump ("Context::initialize");
|
a3.dump ("Context::initialize");
|
||||||
|
|
||||||
// TODO Uncommenting this breaks unit tests because of the errors it
|
// Parse the command line.
|
||||||
// generates.
|
Tree* parseTree = a3t.parse ();
|
||||||
Tree* parseTree = NULL;
|
|
||||||
//Tree* parseTree = a3t.parse ();
|
|
||||||
|
|
||||||
// Initialize the command line parser.
|
|
||||||
if (parseTree && config.getBoolean ("debug"))
|
if (parseTree && config.getBoolean ("debug"))
|
||||||
debug (parseTree->dump ());
|
debug (parseTree->dump ());
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,8 @@ int main (int argc, char** argv)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// Prime the pump.
|
// Prime the pump.
|
||||||
context.a3.capture ("task");
|
const char* fake_argv[] = {"task"};
|
||||||
|
context.a3t.initialize (1, fake_argv);
|
||||||
|
|
||||||
DOM dom;
|
DOM dom;
|
||||||
t.is (dom.get ("system.version"), VERSION, "DOM system.version -> VERSION");
|
t.is (dom.get ("system.version"), VERSION, "DOM system.version -> VERSION");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue