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

テストクラスへのTimeout フィールド追加処理を実装 #408

Merged
merged 4 commits into from
Nov 15, 2018

Conversation

a3636tako
Copy link
Contributor

resolve #372

テストクラスにTimeoutを設定するフィールドを追加する処理を、initialVariant生成時に追加
ソースコードが変更されていることは確認したが、実際にTimeoutされるかは確認していない

Timeout時間がハードコードなのでConfigに吸い出す必要あり

@@ -136,7 +138,9 @@ public void changeGeneration() {

private Variant createInitialVariant() {
final GeneratedSourceCode sourceCode = strategies.execASTConstruction(targetProject);
return createVariant(new Gene(Collections.emptyList()), sourceCode,
final Operation operation = new InsertTimeoutRuleFieldOperation(10);
Copy link
Member

Choose a reason for hiding this comment

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

タイムアウト時間はconfigから取り出すべき
config.getTestTimeLimitSeconds()

Copy link
Member

Choose a reason for hiding this comment

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

sorry きちんと読んでなかった.

Timeout時間がハードコードなのでConfigに吸い出す必要あり

これすぐできる?
Configから吸い出せたほうが実験がかなりやりやすくなる.

Copy link
Member

@shinsuke-mat shinsuke-mat left a comment

Choose a reason for hiding this comment

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

副次的に#392 が解決することを確認しました.
一点,タイムアウト初期値の取り出しを修正して下さい.

#392 は完全に解決されていないので残しておいて下さい.
詳細は新ISSUE #415 参照.

@shinsuke-mat
Copy link
Member

これで #341 も解決されることを確認.

@a3636tako
Copy link
Contributor Author

@shinsuke-mat 修正しました。よろしくお願いします。

Copy link
Member

@shinsuke-mat shinsuke-mat left a comment

Choose a reason for hiding this comment

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

good おつかれさん マージします

@shinsuke-mat shinsuke-mat merged commit 017f0fb into master Nov 15, 2018
@shinsuke-mat shinsuke-mat deleted the insert-timeout-annotation branch November 15, 2018 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JUnit の Timeout 処理が不適切
2 participants