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

types: Switch table driven test error messages to new format #1691

Merged
merged 4 commits into from
Jul 16, 2018

Conversation

ValarDragon
Copy link
Contributor

@ValarDragon ValarDragon commented Jul 16, 2018

Make table driven tests in /types follow the format described in #1664

  • Updated all relevant documentation (docs/)
  • Updated all relevant code comments
  • Wrote tests
  • Updated CHANGELOG.md - not an end user facing change
  • Updated cmd/gaia and examples/

For Admin Use:

  • Added appropriate labels to PR (ex. wip, ready-for-review, docs)
  • Reviewers Assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

Make table driven tests in /types follow the format described in #1664
@codecov
Copy link

codecov bot commented Jul 16, 2018

Codecov Report

Merging #1691 into master will decrease coverage by 0.31%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1691      +/-   ##
==========================================
- Coverage   62.37%   62.05%   -0.32%     
==========================================
  Files         120      116       -4     
  Lines        7117     6931     -186     
==========================================
- Hits         4439     4301     -138     
+ Misses       2427     2387      -40     
+ Partials      251      243       -8

1 similar comment
@codecov
Copy link

codecov bot commented Jul 16, 2018

Codecov Report

Merging #1691 into master will decrease coverage by 0.31%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1691      +/-   ##
==========================================
- Coverage   62.37%   62.05%   -0.32%     
==========================================
  Files         120      116       -4     
  Lines        7117     6931     -186     
==========================================
- Hits         4439     4301     -138     
+ Misses       2427     2387      -40     
+ Partials      251      243       -8

@codecov
Copy link

codecov bot commented Jul 16, 2018

Codecov Report

Merging #1691 into master will decrease coverage by 0.31%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1691      +/-   ##
==========================================
- Coverage   62.37%   62.05%   -0.32%     
==========================================
  Files         120      116       -4     
  Lines        7117     6931     -186     
==========================================
- Hits         4439     4301     -138     
+ Misses       2427     2387      -40     
+ Partials      251      243       -8

Copy link
Contributor

@rigelrozanski rigelrozanski left a comment

Choose a reason for hiding this comment

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

couple small issues which I just addressed:

  • error messages should be lower case/not sentences
  • errored it's quite a word :P

error messages are a bit verbose, typically I think it's fine to just have the developer look up where the error is to really understand what's failing, but the use test-case index is great.

Thanks

@ValarDragon
Copy link
Contributor Author

Sounds good to me! I agree, we don't need to always have a message, since you get the line number for whats failing. Should I remove some from here w/ that in mind?

@rigelrozanski rigelrozanski merged commit 4b68899 into master Jul 16, 2018
@rigelrozanski rigelrozanski deleted the dev/improve_err_msg branch July 16, 2018 18:42
@rigelrozanski
Copy link
Contributor

nah, it's fine for now

ebuchman added a commit that referenced this pull request Jul 16, 2018
Merge pull request #1691: Table driven test indexes
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