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

tests: Run tests with G_DEBUG=fatal-warnings #134

Merged
merged 20 commits into from
Aug 18, 2020
Merged

tests: Run tests with G_DEBUG=fatal-warnings #134

merged 20 commits into from
Aug 18, 2020

Conversation

ricotz
Copy link
Member

@ricotz ricotz commented Oct 14, 2019

No description provided.

@ricotz
Copy link
Member Author

ricotz commented Oct 22, 2019

@kgrubb Did you give it some thoughts?

@kgrubb
Copy link
Collaborator

kgrubb commented Oct 22, 2019

Hey @ricotz, unfortunately this is a bit over my head, perhaps @pantor may be more knowledgeable on the changes in this pr?

@ricotz
Copy link
Member Author

ricotz commented Oct 22, 2019

@kgrubb It is not strictly about the changes, but the way the test-suite works.

Manually creating Vala symbols might be too error prone. And using actual code-snippets would be better. That way a proper Vala AST can be used.

@pantor
Copy link
Collaborator

pantor commented Oct 23, 2019

@ricotz Is there a direct way to parse only a string, but not a complete Vala-sourcefile?

@ricotz
Copy link
Member Author

ricotz commented Oct 23, 2019

@pantor no, currently not

@pantor pantor self-assigned this Oct 23, 2019
@pantor
Copy link
Collaborator

pantor commented May 4, 2020

I've moved all unit tests to file tests, so we don't create Vala symbols manually anymore.

pantor
pantor previously approved these changes May 4, 2020
@ricotz ricotz dismissed pantor’s stale review May 4, 2020 12:48

No self approvals

@ricotz
Copy link
Member Author

ricotz commented May 4, 2020

@pantor Please fix these warnings.

$ _build/src/io.elementary.vala-lint 
.test/FileTest.vala
   38.120   warn    Line exceeds limit of 120 characters (currently 129 characters)   line-length
   53.120   warn    Line exceeds limit of 120 characters (currently 151 characters)   line-length
   56.120   warn    Line exceeds limit of 120 characters (currently 155 characters)   line-length
   64.120   warn    Line exceeds limit of 120 characters (currently 154 characters)   line-length
   67.120   warn    Line exceeds limit of 120 characters (currently 151 characters)   line-length
   70.120   warn    Line exceeds limit of 120 characters (currently 169 characters)   line-length
   73.120   warn    Line exceeds limit of 120 characters (currently 163 characters)   line-length
   76.120   warn    Line exceeds limit of 120 characters (currently 154 characters)   line-length

@pantor
Copy link
Collaborator

pantor commented May 4, 2020

Warnings should be all fixed now.

@pantor pantor self-requested a review June 24, 2020 14:53
@pantor pantor removed their assignment Aug 16, 2020
@pantor pantor removed their request for review August 16, 2020 13:44
@pantor pantor merged commit fc5dd9e into master Aug 18, 2020
@pantor pantor deleted the wip/ricotz/fail branch August 18, 2020 06:52
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.

3 participants