{"action":"created","issue":{"url":"https://api.github.com/repos/google/compile-testing/issues/70","labels_url":"https://api.github.com/repos/google/compile-testing/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/google/compile-testing/issues/70/comments","events_url":"https://api.github.com/repos/google/compile-testing/issues/70/events","html_url":"https://github.com/google/compile-testing/issues/70","id":84081791,"number":70,"title":"Compile generated code and execute it","user":{"login":"stephanenicolas","id":1832925,"avatar_url":"https://avatars.githubusercontent.com/u/1832925?v=3","gravatar_id":"","url":"https://api.github.com/users/stephanenicolas","html_url":"https://github.com/stephanenicolas","followers_url":"https://api.github.com/users/stephanenicolas/followers","following_url":"https://api.github.com/users/stephanenicolas/following{/other_user}","gists_url":"https://api.github.com/users/stephanenicolas/gists{/gist_id}","starred_url":"https://api.github.com/users/stephanenicolas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephanenicolas/subscriptions","organizations_url":"https://api.github.com/users/stephanenicolas/orgs","repos_url":"https://api.github.com/users/stephanenicolas/repos","events_url":"https://api.github.com/users/stephanenicolas/events{/privacy}","received_events_url":"https://api.github.com/users/stephanenicolas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-02T15:51:29Z","updated_at":"2015-06-02T19:54:07Z","closed_at":null,"body":"Hi @cgruber ,\r\n\r\nis it possible to compile generated code and execute it via compile-testing ?\r\nI mean compile the code that an annotation processor created, and use the compiled classes ?\r\n\r\nIf not, how would you do ?"},"comment":{"url":"https://api.github.com/repos/google/compile-testing/issues/comments/108077372","html_url":"https://github.com/google/compile-testing/issues/70#issuecomment-108077372","issue_url":"https://api.github.com/repos/google/compile-testing/issues/70","id":108077372,"user":{"login":"stephanenicolas","id":1832925,"avatar_url":"https://avatars.githubusercontent.com/u/1832925?v=3","gravatar_id":"","url":"https://api.github.com/users/stephanenicolas","html_url":"https://github.com/stephanenicolas","followers_url":"https://api.github.com/users/stephanenicolas/followers","following_url":"https://api.github.com/users/stephanenicolas/following{/other_user}","gists_url":"https://api.github.com/users/stephanenicolas/gists{/gist_id}","starred_url":"https://api.github.com/users/stephanenicolas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephanenicolas/subscriptions","organizations_url":"https://api.github.com/users/stephanenicolas/orgs","repos_url":"https://api.github.com/users/stephanenicolas/repos","events_url":"https://api.github.com/users/stephanenicolas/events{/privacy}","received_events_url":"https://api.github.com/users/stephanenicolas/received_events","type":"User","site_admin":false},"created_at":"2015-06-02T19:54:07Z","updated_at":"2015-06-02T19:54:07Z","body":"I like that @johncarl81 , I had implemented the strategy proposed by @tbroyer in a former project : \r\nhttps://github.com/stephanenicolas/boundbox/tree/master/boundbox-library-integration-tests\r\n(if this can help anyone).\r\n\r\nAnd your approach @johncarl81, in the same project for unit testing the processor (at that time I didn't know about truth) : \r\nhttps://github.com/stephanenicolas/boundbox/blob/master/boundbox-library/src/test/java/org/boundbox/processor/BoundBoxProcessorTest.java\r\n\r\nI think both techniques are interesting, I need to sort out what are the advantages and drawbacks of each of them. Sure, it looks like having an integration-test project with sample like classes and their associated tests seems easier, but they ain't unit tests.\r\n\r\nThx all @tbroyer and @johncarl81 for your answers. I wish this issue can be useful to others.\r\n\r\n@cgruber, you can probably close it, I am really not sure this kind of testing might fall into the scope of your lib as indicated by @johncarl81.\r\n\r\n"}}