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

Not all test are run on Travis, example app exception #601

Open
nicoabie opened this issue Apr 26, 2019 · 1 comment
Open

Not all test are run on Travis, example app exception #601

nicoabie opened this issue Apr 26, 2019 · 1 comment

Comments

@nicoabie
Copy link

I'm having an issue with the sample app see comment

And while trying to investigate further and see if I could fixed I noticed that the TyphoonAssemblyBuilderTests that are responsible for checking the piece of code that throws the exception are not being run.

@alexgarbarev
Copy link
Contributor

I can't remember all details now, but I had faced with similar problem before. It was tricky. The reason why [assmebly class] is not kind of [TyphoonAssembly class], because two class instances of TyphoonAssembly were compiled and exists in the memory at same time: one built for app target (host app) and one was built for test target. So in runtime it executes randomly: sometimes it's comparing with right class (superclass instance) and sometimes with parallel class.
To fix that, you need to check that TyphoonAssembly is not included into your test target. It should only be included into app or framework target which is then tested by test target.

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

No branches or pull requests

2 participants