Re: [PATCH 3/3] Tests file for git-remote-mediawiki

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH 3/3] Tests file for git-remote-mediawiki

From: Matthieu Moy <hidden>
Date: 2016-06-15 22:54:00

"Simon.Cathebras" [off-list ref] writes:
On 06/06/2012 22:18, Matthieu Moy wrote:
quoted
Simon Cathebras[off-list ref]  writes:
quoted
From: Charles Roussel<redacted>

Those scripts test the functions of git-remote-mediawiki.
t9360: test cases for git clone. Including tests of cloning just a category, just a precise set of page and a classical use of clone on the whole wiki.
Avoid long lines in code and commit messages (80 columns max)
Understood, it will be corrected in the next patch.
Detail: in emails, people generally leave blank lines to separate
paragraphs, and in particular to separate one's own text from citation.
Compare my response

  http://thread.gmane.org/gmane.comp.version-control.git/199238/focus=199349

to yours to see what I mean

  http://thread.gmane.org/gmane.comp.version-control.git/199238/focus=199468
Do you mean that we should split the third patch into two patches ?
For instance::
    Patch 3/4: tests for git pull
    Patch 4/4: tests for git push
Yes, except the title should mention git-remote-mediawiki, of course.
quoted
quoted
+test_expect_success 'git clone only create Main_Page.mw with a wiki with no other pages ' '
+        wiki_reset&&
+        wiki_editpage foo "this page must be delete before the clone" false&&
s/delete/deleted/
quoted
+	git_diff_directories mw_dir ref_page&&
functions in tests are usually prefixed with test_ instead.
Fair enough. We have changed the function's name. Should we add such
prefix on functions like wiki_reset or wiki_delete page ?
I don't think so. They're not very specific to testing indeed, and
really are specific to the wiki OTOH.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/

Re: [PATCH 3/3] Tests file for git-remote-mediawiki

From: Simon Perrat <hidden>
Date: 2016-06-15 22:54:00

2012/6/8 Matthieu Moy [off-list ref]
"Simon.Cathebras" [off-list ref] writes:
quoted
Do you mean that we should split the third patch into two patches ?
For instance::
    Patch 3/4: tests for git pull
    Patch 4/4: tests for git push
Yes, except the title should mention git-remote-mediawiki, of course.
Should we split our test file in two then ? Currently they're all in t9361.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help