Re: [PATCH] Add more checkout tests

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Daniel Barkalow
Date: Sunday, December 9, 2007 - 9:03 pm

On Sun, 9 Dec 2007, Junio C Hamano wrote:


Left over from before I'd added the here document, so there'd be a file to 
diff against, and it would be wrong, and I could find the actual contents. 
I just forgot to take it out when I was creating the real thing.


Sure. Possibly we should instead just be testing for the presence of the 
correct line, and absence of incorrect lines, in any case?


What I'm actually testing for is the "M<tab>one" line, and that the 
previous line isn't name-status stuff; that is, that the name-status stuff 
is right.

Of course, a patch to clean up the user experience could have a hunk that 
makes the test expect that the UI is cleaned up. It's not like we can't 
change our tests to accompany improvements in behavior, and I'd argue that 
those hunks give a useful example of the improvement.


I think we're already testing for that. I really want the "HEAD is now..." 
line, which ought to give the right info.

The point of adding these tests (and parts of tests) is that I'd forgotten 
to maintain some of the important information while writing 
builtin-checkout, and there wasn't a test that it was provided. While some 
of the output is arbitrary informative text, there's a certain amount of 
generated information there that shouldn't get lost or be incorrect.

	-Daniel
*This .sig left intentionally blank*
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] Add more checkout tests, Junio C Hamano, (Sun Dec 9, 8:42 pm)
Re: [PATCH] Add more checkout tests, Daniel Barkalow, (Sun Dec 9, 9:03 pm)
Re: [PATCH] Add more checkout tests, Junio C Hamano, (Sun Dec 9, 10:14 pm)