Skip to content

Feature/dashboard#1025

Open
Fanirindrainy wants to merge 3 commits intopillar-markup:devfrom
Fanirindrainy:feature/dashboard
Open

Feature/dashboard#1025
Fanirindrainy wants to merge 3 commits intopillar-markup:devfrom
Fanirindrainy:feature/dashboard

Conversation

@Fanirindrainy
Copy link
Copy Markdown
Contributor

No description provided.

from: aConfiguration.
^ configuredCheckers values ]].

put: (availableCheckers at: aCheck) new ].
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is correct I configured the checker far too many times.

MicChecker >> checkProject: aFileReference [

| collector |
results := OrderedCollection new.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you explain why you need to reinitialize the results?
Because results is already initiliazed in the initialize method.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I found that In the normal usage through MicAnalysisReportWriter, a new checker instance is created for each check, so the reinitialization is indeed redundant. However, in the tests, the same checker instance is reused multiple times, which requires the reinitialization.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is strange because the setUp is creating a new instance each time.
BTW could you split the PR so that we can have a PR for the tools and one for the rest.

I plan also to make the list of checker settable. this way we will be able to write better tests.
Tx.

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.

2 participants