Community
Participate
Working Groups
It would be cool if anyone knowing CGit had a way to put up a test case without knowing JGit API. JGit already provides a CLI in org.eclipse.jgit.pgm, once it is completely backed with JGit API (bug 365439), being able to write tests like this, shouldn't be hard: @Test public void testList() throws Exception { String result = execute("git branch -v"); assertEquals("* master 9c58deb Initial commit", result); } This would not only make writing tests easier but also increase test coverage on JGit API.
A initial patch has been pushed as http://egit.eclipse.org/r/4720. Comments are welcome.
Created attachment 207846 [details] mylyn/context/zip
Matthias, any chance someone will look at the fix in the nearest future? If there is anything you guys don't like about the patch please let me know and I'll amend it. IMO this bug combined with bug 365439 could be a real booster for making the JGit API more robust.
Fixed with bf845c126d53f07de103e03b68ddb7f24014cee5
For the purposes of documentation, I supervised and approved this change as a member of the Technology PMC.
This change needs an approved CQ, hence I reverted this change as it was submitted by mistake and filed CQ 6358 and re-issued this contribution under https://git.eclipse.org/r/#/c/5408/
The CQ has been approved. Can we proceed with the contribution? The IP is clean now.
Merged as 9c5b31703f278c510bec64fa7a822713feaca6f2