{"action":"created","issue":{"url":"https://api.github.com/repos/google/j2objc/issues/685","labels_url":"https://api.github.com/repos/google/j2objc/issues/685/labels{/name}","comments_url":"https://api.github.com/repos/google/j2objc/issues/685/comments","events_url":"https://api.github.com/repos/google/j2objc/issues/685/events","html_url":"https://github.com/google/j2objc/issues/685","id":123842653,"number":685,"title":"Several RxJava Tests failing","user":{"login":"spierce7","id":871169,"avatar_url":"https://avatars.githubusercontent.com/u/871169?v=3","gravatar_id":"","url":"https://api.github.com/users/spierce7","html_url":"https://github.com/spierce7","followers_url":"https://api.github.com/users/spierce7/followers","following_url":"https://api.github.com/users/spierce7/following{/other_user}","gists_url":"https://api.github.com/users/spierce7/gists{/gist_id}","starred_url":"https://api.github.com/users/spierce7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spierce7/subscriptions","organizations_url":"https://api.github.com/users/spierce7/orgs","repos_url":"https://api.github.com/users/spierce7/repos","events_url":"https://api.github.com/users/spierce7/events{/privacy}","received_events_url":"https://api.github.com/users/spierce7/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-25T01:12:48Z","updated_at":"2015-12-28T19:02:47Z","closed_at":null,"body":"I recently started transpiling RxJava so I thought I'd run the RxJava tests and confirm if's safe to use. I had to comment out 3 or 4 tests, because they couldn't compile due to dependencies on `System.gc()`, and some other stuff. After that, the tests compiled just fine. I'm seeing a lot of tests failing though which makes me question whether or not it's safe to be using this library in a transpiled state.\r\n\r\n**Modified Sources so that the tests compile**: [rxjava-src-1.1.0.zip](https://github.com/google/j2objc/files/71976/rxjava-src-1.1.0.zip)\r\n**Results from running the tests:** [rxjava-tests-result.txt](https://github.com/google/j2objc/files/71977/rxjava-tests-result.txt)\r\n\r\nI had [found a post](https://groups.google.com/forum/#!topic/j2objc-discuss/3eAwseG4Nms) where @tomball a few months ago said he was able to get many of the RxJava tests to pass after removing the tests that wouldn't compile (as mentioned above). **Some of the tests appear to fail because they don't complete before the timeout, and some appear to fail because of unexpected results or exceptions.** I'm not really sure what to do with failing tests. Is that something I can fix?\r\n\r\nI'm wondering if:\r\n1. I'm compiling the sources wrong\r\n2. These tests were added to rxjava after @tomball had them working, or if the source was modified, causing these issues with j2objc\r\n3. j2objc is compiling the tests / sources incorrectly\r\n\r\nNote: You'll notice in the test results I posted that I ran each test individually. That's because I found if I ran all the tests with a single command, I'd get a segfault error."},"comment":{"url":"https://api.github.com/repos/google/j2objc/issues/comments/167629483","html_url":"https://github.com/google/j2objc/issues/685#issuecomment-167629483","issue_url":"https://api.github.com/repos/google/j2objc/issues/685","id":167629483,"user":{"login":"tomball","id":2991279,"avatar_url":"https://avatars.githubusercontent.com/u/2991279?v=3","gravatar_id":"","url":"https://api.github.com/users/tomball","html_url":"https://github.com/tomball","followers_url":"https://api.github.com/users/tomball/followers","following_url":"https://api.github.com/users/tomball/following{/other_user}","gists_url":"https://api.github.com/users/tomball/gists{/gist_id}","starred_url":"https://api.github.com/users/tomball/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomball/subscriptions","organizations_url":"https://api.github.com/users/tomball/orgs","repos_url":"https://api.github.com/users/tomball/repos","events_url":"https://api.github.com/users/tomball/events{/privacy}","received_events_url":"https://api.github.com/users/tomball/received_events","type":"User","site_admin":false},"created_at":"2015-12-28T19:02:47Z","updated_at":"2015-12-28T19:02:47Z","body":"\"... he was able to get many of the RxJava tests to pass ...\"\r\n\r\n\"Many\" does not equal \"all\" -- like your test log shows, lots of the core tests passed, enough to show that the sources and tests were translated and compiled. Some of the failing tests may indicate j2objc runtime  bugs, some may indicate bad tests (since developers tend to write tests after writing code instead of first, and so platform assumptions can be baked into those tests). Some of the test failures are for tests of exception classes, but from an app's perspective the most important issue should be whether the exceptions are thrown, which they appear to be (their details just don't appear correct).\r\n\r\nI suggest trying RxJava with your app, and write unit tests for your app's behavior. If one of those tests fail but should pass (remember, no assumption baking :-), then see if it's a JRE emulation issue. If your unit test app is an Xcode target, then debugging it will be much easier."}}