Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

fixtures: initialize fixtures into separated methods #214

Merged
merged 1 commit into from
Jan 19, 2017
Merged

fixtures: initialize fixtures into separated methods #214

merged 1 commit into from
Jan 19, 2017

Conversation

ajnavarro
Copy link
Contributor

To be able to use fixtures with other test frameworks than go-check,
we created two methods, one to set fixtures path correctly, and
another to remove all the temporal data created when testing.

@codecov-io
Copy link

codecov-io commented Jan 18, 2017

Current coverage is 76.28% (diff: 100%)

Merging #214 into master will decrease coverage by 0.63%

@@             master       #214   diff @@
==========================================
  Files            96         96          
  Lines          6299       6299          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
- Hits           4845       4805    -40   
- Misses          922        971    +49   
+ Partials        532        523     -9   

Powered by Codecov. Last update 07218eb...fece3a4


func (s *Suite) SetUpSuite(c *check.C) {
// InitFixtures set the correct path to be able to access to the fixtures files
func InitFixtures() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Probably Init and Clean would be better names since we're already in the fixtures packages (e.g. fixtures.Init())

To be able to use fixtures with other test frameworks than go-check,
we created two methods, one to set fixtures path correctly, and
another to remove all the temporal data created when testing.
@ajnavarro ajnavarro merged commit 51e9a9c into src-d:master Jan 19, 2017
@ajnavarro ajnavarro deleted the improvement/fixtures-init-test-functions branch January 19, 2017 13:14
mcuadros pushed a commit that referenced this pull request Jan 31, 2017
To be able to use fixtures with other test frameworks than go-check,
we created two methods, one to set fixtures path correctly, and
another to remove all the temporal data created when testing.
gsalingu-ovhus pushed a commit to gsalingu-ovhus/go-git that referenced this pull request Mar 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants