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

Test execution fails when multiple VBA projects loaded at Excel start up #4253

Closed
donile opened this issue Aug 6, 2018 · 3 comments
Closed
Labels
bug Identifies work items for known bugs feature-unit-testing hacktoberfest Tags issues for Hacktoberfest 2019

Comments

@donile
Copy link

donile commented Aug 6, 2018

Rubberduck Version

Version 2.2.6672.28001
OS: Microsoft Windows NT 10.0.16299.0, x64
Host Product: Microsoft Office 2013 x64
Host Version: 15.0.5045.1000
Host Executable: EXCEL.EXE

Reproduce Instructions

  1. Start Excel with an Excel Add-In installed
  2. Create blank workbook
  3. Add Test Module to Book1
  4. Add TestMethod1 to TestModule1
  5. Run All Tests

Stack Trace

System.ArgumentException: TypeInfosCollection::Get failed. 'TestModule1' component not found.
   at Rubberduck.VBEditor.ComManagement.TypeLibs.TypeLibWrapper.TypeInfosCollection.Get(String searchTypeName) in C:\projects\rubberduck\Rubberduck.VBEEditor\ComManagement\TypeLibs\TypeLibs.cs:line 67
   at Rubberduck.VBEditor.ComManagement.TypeLibsAPI.VBETypeLibsAPI.ExecuteCode(TypeLibWrapper projectTypeLib, String standardModuleName, String procName, Object[] args) in C:\projects\rubberduck\Rubberduck.VBEEditor\ComManagement\TypeLibs\TypeLibsAPI.cs:line 211
   at Rubberduck.UnitTesting.TestEngine.Run(IEnumerable`1 members) in C:\projects\rubberduck\Rubberduck.Core\UnitTesting\TestEngine.cs:line 166
   at Rubberduck.UnitTesting.TestEngine.RunInternal(IEnumerable`1 tests) in C:\projects\rubberduck\Rubberduck.Core\UnitTesting\TestEngine.cs:line 113

Screenshot
image

...

@Vogel612 Vogel612 added bug Identifies work items for known bugs feature-unit-testing labels Aug 6, 2018
@WaynePhillipsEA
Copy link
Contributor

This sounds like an old issue, and should already be fixed from PR #4010?

@bclothier
Copy link
Contributor

bclothier commented Aug 6, 2018

I believe this particular PR has yet to make to the green release, mainly because the next green release hasn't happened yet. The last green release was a quite while ago, and this particular PR was merged in sometime after that, as this pre-release.

Of course, the OP can also download the latest pre-release here.

@Vogel612 Vogel612 added the hacktoberfest Tags issues for Hacktoberfest 2019 label Sep 20, 2019
@bclothier
Copy link
Contributor

This should have been closed with the green release but I think this got missed, so closing.

Semi-automatic bug tracker automation moved this from ToDo to Done Oct 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Identifies work items for known bugs feature-unit-testing hacktoberfest Tags issues for Hacktoberfest 2019
Projects
Development

No branches or pull requests

4 participants