Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ファイル出力オプションの名前/挙動を自然な形に変更 #807

Merged
merged 8 commits into from Dec 8, 2020

Conversation

shinsuke-mat
Copy link
Member

@shinsuke-mat shinsuke-mat commented Dec 3, 2020

resolve #801
depends PR #804

notes

PR #804 からの派生ブランチである点に注意.
PR #804 解決後にreviewしてください.
行儀の悪いPRだけど依存を持つので仕方なし.
image

レビュー時のファイル差分はこっち見て下さい.
https://github.com/kusumotolab/kGenProg/compare/better-exporter-params..separate-exporters?w=1

#804 がマージされたのでmasterからマージさせておいた.
行儀の悪さは解消.

やったこと

tungled

kgpMainTestのファイル出力の指定周りを改善
ExporterTest の CRLF → LF

@clione-bot
Copy link

clione-bot bot commented Dec 3, 2020

No problem. Good job!

@shinsuke-mat shinsuke-mat changed the title Better exporter params ファイル出力オプションの名前/挙動を自然な形に変更 Dec 3, 2020
@hrtwt hrtwt mentioned this pull request Dec 5, 2020
Copy link
Contributor

@hrtwt hrtwt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo とドキュメントの更新漏れです.
ドキュメントは一旦Issueを立てて,別PRで更新でもいいと思います.

README.md Outdated
@@ -93,7 +93,7 @@ $ java -jar path/to/kGenProg.jar
| `-t`, `--test` | Specifies paths to test source code, or to directories containing them. Paths are separated with spaces. | Nothing |
| `-x`, `--exec-test` | Specifies fully qualified names of test classes executed during evaluation of variants (i.e. fix-candidates). It is recommended to specify test classes detecting a bug. Class names are separated with spaces. | All test classes |
| `-c`, `--cp` | Specifies class paths needed to build the target project. Paths are separated with spaces. | Nothing |
| `-o`, `--out-dir` | Writes patches kGenProg generated under the specified directory. Patches are outputted to a directory having a name of the execution time and date under the specified directory. | A directory named `kgenprog-out` is created in the current directory. |
| `-o`, `--out-dir` | Specifies an output directory. Generated files include patches and history json. They can be enabled by `--patch-output` or `--history-record` | A directory named `kgenprog-out` is created in the current directory. |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doc/ja/README.md (日本語版)にも同様の変更をお願いします

README.md Outdated
Comment on lines 114 to 115
| `--patch-output` | Writes patch files to the output directory specified in `-o` option. | `false` |
| `--history-record` | Records and writes generation process of all generated variants as JSON format. | `false` |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

日本語版の変更と Usage の更新をお願いします

Comment on lines +318 to +321
@com.electronwill.nightconfig.core.conversion.Path("patch-output")
@PreserveNotNull
private boolean isPatchOutput = DEFAULT_IS_PATCH_OUTPUT;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doc/kgenprog-config-template.toml への反映もお願いします

public class ExportersTest {

@Test
public void testInstanciationWithPreviousResults() throws IOException {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo の修正をお願いします

Suggested change
public void testInstanciationWithPreviousResults() throws IOException {
public void testInstantiationWithPreviousResults() throws IOException {

@shinsuke-mat
Copy link
Member Author

thx 指摘部分を修正しました.
ついでに --history-record でパフォーマンス落ちる点をREADMEに明記.

Copy link
Contributor

@hrtwt hrtwt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

修正ありがとうございます.
問題なさそうなのでマージします.
お疲れさまでした.

@hrtwt hrtwt merged commit c5c26ce into master Dec 8, 2020
@hrtwt hrtwt deleted the better-exporter-params branch December 8, 2020 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants