Skip to content

Conversation

@MDoerner
Copy link
Contributor

This PR closes #4182

Moreover, the fix makes MockParser.AddTestLibrary obsolete since the parsing process will pick up all serialized declarations from referenced projects. Acordingly, I removed it along with all uses.
This had a good effect on test execution times.

@codecov
Copy link

codecov bot commented Jul 29, 2018

Codecov Report

Merging #4239 into next will decrease coverage by 0.02%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##             next    #4239      +/-   ##
==========================================
- Coverage   52.16%   52.14%   -0.02%     
==========================================
  Files         968      968              
  Lines       33483    33484       +1     
==========================================
- Hits        17466    17459       -7     
- Misses      16017    16025       +8
Impacted Files Coverage Δ
...g/ComReflection/ReferencedDeclarationsCollector.cs 23.24% <100%> (+4.22%) ⬆️
...erduck.Parsing/VBA/COMReferenceSynchronizerBase.cs 66.37% <0%> (-9.73%) ⬇️
...bols/DeclarationLoaders/SpecialFormDeclarations.cs 98.41% <0%> (-1.59%) ⬇️
Rubberduck.Parsing/VBA/ParseCoordinator.cs 83.04% <0%> (-1.3%) ⬇️
...ng/Symbols/DeclarationLoaders/DebugDeclarations.cs 98.84% <0%> (-1.16%) ⬇️
Rubberduck.Parsing/VBA/RubberduckParserState.cs 59.68% <0%> (+0.27%) ⬆️

using (var state = parser.State)
{
state.AddTestLibrary("Excel.1.8.xml");
//state.AddTestLibrary("Excel.1.8.xml");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this only commented out?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I must have missed to completely remove.

using (var state = parser.State)
{
state.AddTestLibrary("Excel.1.8.xml");
//state.AddTestLibrary("Excel.1.8.xml");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this only commented out?

var parser = MockParser.Create(vbe.Object);

parser.State.AddTestLibrary(library.Equals("Scripting") ? "Scripting.1.0.xml" : "Excel.1.8.xml");
//parser.State.AddTestLibrary(library.Equals("Scripting") ? "Scripting.1.0.xml" : "Excel.1.8.xml");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commented code

@retailcoder retailcoder merged commit 0dae613 into rubberduck-vba:next Jul 30, 2018
@MDoerner MDoerner deleted the FixLoadingSerializedDeclarationsFromNonStandardPath branch October 9, 2018 20:15
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

Successfully merging this pull request may close these issues.

Unit tests appear to be deserializing the user declarations instead of the test ones.

3 participants