- Apr 25, 2014
-
-
Gregory Szorc authored
There is little reason for the data members of TestRunner to be public, as they are implementation details. Enforce it through naming.
-
Gregory Szorc authored
With this change, TestSuite no longer accesses anything on TestRunner and the TestRunner is no longer passed to TestSuite.
-
Gregory Szorc authored
-
Gregory Szorc authored
This was the last usage of option in ``TextTestRunner.run``.
-
Gregory Szorc authored
-
Gregory Szorc authored
-
Gregory Szorc authored
This starts a series of patches that will lessen the importance of TestRunner. It will remove the TestRunner instance stored inside the TestSuite.
-
- May 16, 2014
-
-
Durham Goode authored
Adds a more detailed description of what 'local' and 'other' mean to the merge tool documentation.
-
- May 08, 2014
-
-
Durham Goode authored
Changes rebase conflict markers to say 'source' and 'dest' instead of 'local' and 'other'. This ends up looking like: one <<<<<<< dest: a3e5c7fd master - bob: "A commit to master" master ======= mine >>>>>>> source: c7fda3e5 - durham: "A commit to my feature branch" three
-
- May 10, 2014
-
-
Durham Goode authored
Changes the graft conflict markers to be 'graft' and 'local' to make it more intuitive which side is which.
-
- May 08, 2014
-
-
Durham Goode authored
Adds a labels function parameter to all the functions between merge.update and filemerge.filemerge. This will allow commands like rebase to specify custom marker labels.
-
- Apr 22, 2014
-
-
Gregory Szorc authored
We shouldn't be performing interactive prompting during test execution. The first step of this is to move the functionality into TestResult.
-
Gregory Szorc authored
-
Gregory Szorc authored
TestResult is the thing that captures all our test results. It's logical for diff viewing to be handled there and not inside Test. While writing this patch, it was discovered that Test.fail() was printing redundant test result output. This has been removed. Arguments controlling diffs have been removed from Test.__init__.
-
Gregory Szorc authored
The global abort flag has been moved into each Test instance. A Test.abort() accomplishing the same thing has been added.
-
- May 08, 2014
-
-
Durham Goode authored
Adds a conflict marker formatter that can produce custom conflict marker descriptions. It can be set via ui.mergemarkertemplate. The old behavior can be used still by setting ui.mergemarkers=basic. The default format is similar to: {node|short} {tag} {branch} {bookmarks} - {author}: "{desc|firstline}" And renders as: contextblahblah <<<<<<< local: c7fdd7ce4652 - durham: "Fix broken stuff in my feature branch" line from my changes ======= line from the other changes >>>>>>> other: a3e55d7f4d38 master - sid0: "This is a commit to master th... morecontextblahblah
-
- Apr 22, 2014
-
-
Gregory Szorc authored
All options are now passed as arguments and we no longer need options. This enables us to instantiate Test from "plain old data" types. Since options must be given as arguments, it also makes people think harder about adding things that may not belong in Test. This will help ensure a proper separation of responsibility going forward.
-
Gregory Szorc authored
-
Gregory Szorc authored
-
Gregory Szorc authored
-
Gregory Szorc authored
Instead of making port numbers derived from count and a global initial port, we now pass a start port to Test.__init__ and do the calculation at a higher level.
-
Gregory Szorc authored
-
Gregory Szorc authored
-
Gregory Szorc authored
-
Gregory Szorc authored
-
Gregory Szorc authored
-
Gregory Szorc authored
TestSuite.run() doesn't need to filter tests by name because that already happens elsewhere. Garbage in garbage out applies.
-
Gregory Szorc authored
Upcoming patches will move the execution of tests to separate processes. To facilitate this, it makes sense to move logic out of Test. Furthermore, test filtering is logically the domain of the test runner, not the test itself. This patch interrupts our mini series of factoring options into named arguments because filtering consults many options and it is easier to move this logic out of Test sooner so we don't have to introduce arguments at all.
-
Gregory Szorc authored
We no longer access any attributes on TestRunner besides options, so we stop passing a TestRunner to Test.__init__ and now pass the options data structure instead. Subsequent patches will move accessed options attributes into named arguments.
-
Gregory Szorc authored
-
Gregory Szorc authored
This patch starts a mini series of moving arguments to Test.__init__ from semi-complex data structures (such as the command options) to named arguments. This will allow Test instances to be more easily instantiated from other contexts. This improves the ability to run Mercurial tests in new and different environments.
-
- Mar 07, 2013
-
-
Stephen Lee authored
When updating to a bookmark, mention that the bookmark is now active. This is a reminder that update does not move the current bookmark if an explicit target is given - instead it activates that target.
-
- Apr 22, 2014
-
-
Gregory Szorc authored
Previously, a Test's path came from the base directory of all tests and a filename leaf. There is not a strong reason why an absolute test path can not be specified. This change isn't strictly necessary. But it does enable scenarios such as more easily running tests from multiple, non-sibling directories.
-
- Apr 21, 2014
-
-
Gregory Szorc authored
refpath is a side-effect of the test type. We therefore move it to the Test class implementations.
-
Gregory Szorc authored
Exceptions are all handled in Test.run(). This code was redundant since the unittest test wrapper class was merged into Test.
-
Gregory Szorc authored
We were only utilizing 2 parts of options. These have been converted to named arguments.
-
- May 16, 2014
-
-
Mads Kiilerich authored
Mercurial tags can be local (tag -l, stored in .hg/localtags) or global (normal tags, tracked in .hgtags) ... or extensions can add other kind of tags. Convert would take all tags (except "tip"), not just the ones from .hgtags, and put them into .hgtags. Instead, convert only the global tags that come from .hgtags.
-
- Apr 21, 2014
-
-
Gregory Szorc authored
We no longer need cleanup() because setUp() and tearDown() cover it. We move tempdir creation into setUp() and always delete in tearDown()
-
Gregory Szorc authored
-
Gregory Szorc authored
TestResult has facilities for recording when tests start and stop. It makes sense to move execution time recording into TestResult. In addition, output generation is being moved into TestResult, a class that has a concept of an output buffer (and a lock).
-