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 refactoring #323

Merged
merged 1 commit into from
Dec 29, 2018
Merged

Tests refactoring #323

merged 1 commit into from
Dec 29, 2018

Conversation

albenik
Copy link
Contributor

@albenik albenik commented Dec 27, 2018

PR Details

Tests refactored.
All custom check replaced with github.com/stretchr/testify/assert.
Temporary maped dependency to github.com/stretchr/testify@master as of error fixed.

Description

This commit is not ideal but necessary (IMHO)

Related Issue

#322

Motivation and Context

Primary motivation: Avoid statefull tests with not ignorable git file tree changes.
Multiple tests reads and overwrites single file for own needs.
Multiple tests reads and overwrites file Book1.xlsx under version control.

Secondary motivation: Minimal tests logic aligment, separate error expectation
and not error expectation tests. Introduce sub-test over test data sets and so far.

How Has This Been Tested

Simple run go test ./... and checks git status

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Primary motivation: Avoid statefull tests with not ignorable git file tree changes.
Multiple tests reads and overwrites signle file for won needs.
Multiple tests reads and overwrites file under version control.

Secondary motivation: Minimal tests logic aligment, separate error expectation
and not error expectation tests. Introduce sub-test over test data sets and so far.

This commit is not ideal but necessary (IMHO)
@codecov-io
Copy link

codecov-io commented Dec 27, 2018

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #323      +/-   ##
==========================================
- Coverage   98.84%   98.74%   -0.11%     
==========================================
  Files          18       18              
  Lines        3990     3990              
==========================================
- Hits         3944     3940       -4     
- Misses         27       31       +4     
  Partials       19       19
Impacted Files Coverage Δ
file.go 87.93% <0%> (-1.73%) ⬇️
cell.go 96.68% <0%> (-1.51%) ⬇️
rows.go 99.23% <0%> (+0.76%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9a6f66a...35426ed. Read the comment docs.

@xuri xuri merged commit 45ab95a into qax-os:master Dec 29, 2018
@xuri
Copy link
Member

xuri commented Dec 29, 2018

A nice addition. Thank you.

@albenik albenik deleted the tests_fix branch January 10, 2019 09:21
@xuri xuri added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Mar 6, 2020
nullfy pushed a commit to nullfy/excelize that referenced this pull request Oct 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants