Skip to content
This repository has been archived by the owner on Jan 8, 2023. It is now read-only.

Enable adding multiple assemblies to test #59

Closed
jamesmundy opened this issue Oct 7, 2016 · 8 comments · Fixed by #82
Closed

Enable adding multiple assemblies to test #59

jamesmundy opened this issue Oct 7, 2016 · 8 comments · Fixed by #82
Assignees
Milestone

Comments

@jamesmundy
Copy link

Currently trying to use this for in Android. I have the Android test app with one test in and a shared portable library with one test in. When I try to add the extra assembly like (nunit.AddTestAssembly(typeof(TestInOtherAssembly).Assembly); ) the test in my original assembly is not run.

If add both the original and portable assembly only the assembly I add last is run.

nunit.AddTestAssembly(typeof(TestInOtherAssembly).Assembly);
nunit.AddTestAssembly(typeof(TestInOriginalAssembly).Assembly);

Any ideas?

@rprouse rprouse self-assigned this Oct 10, 2016
@rprouse
Copy link
Member

rprouse commented Oct 10, 2016

Could be a bug, I will need to check the code.

@ChrisMaddock
Copy link
Member

ChrisMaddock commented Oct 18, 2016

I think I've just hit the same problem poking around at #48. It looks like the code loads all the assemblies into NUnitTestAssemblyRunner before running any, but NUnitTestAssemblyRunner only holds/runs a single assembly.

@rprouse - architecturally, where should responsibility for combining test results lie? I was looking at integrating the xamarin runners with the portable agent, which (from a quick look!) also only loads/runs single assemblies. Is it the responsibility of the runner to combine results from multiple assemblies, or should that live in the framework/agent? It sounds like it would be useful at agent level, save it being duplicated in all runners?

@rprouse
Copy link
Member

rprouse commented Oct 18, 2016

@ChrisMaddock I was also thinking of using the portable agent in the Xamarin runners. When I originally wrote the Xamarin runner, I was duplicating too much code, so when I wrote the portable agent, I kept that in mind and moved as much as I could into it. Based on that, i think that the responsibility for running and combining results from multiple assemblies should be in the portable agent, then we get the fix in every runner that will eventually use it.

@ChrisMaddock
Copy link
Member

@rprouse - Great, thanks. I think that is pre-requisite to #48, which would also fix this bug. I may have an attempt at it. 😄

@rprouse rprouse assigned ChrisMaddock and unassigned rprouse Oct 18, 2016
@rprouse
Copy link
Member

rprouse commented Oct 18, 2016

@ChrisMaddock it is all yours. I've changed the assignment 😄

@ChrisMaddock
Copy link
Member

@rprouse - Sorry, I meant I'll attempt adding multi-assembly runs to the agent, to fix #48! Although that should fix this by default - no intention to steal the issue from you! 😆

@ChrisMaddock
Copy link
Member

Blocked by nunit/nunit.portable.agent#13 and then #48. I think we could work around it if needed, but it would be a short-term fix.

@ChrisMaddock
Copy link
Member

#48 has been removed from the milestone, this should instead be fixed independently.

@ChrisMaddock ChrisMaddock self-assigned this Nov 29, 2016
@ChrisMaddock ChrisMaddock changed the title Unable to add multiple assemblies to test Enable adding multiple assemblies to test Jan 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants