apache / apache/incubator-graphar

bug(c++,spark): clean the output directory when generating data in unit test

Open
#584 8 comments 0 reactions 1 assignee Claimed by @SumitkumarSatpute View on GitHub
bug good first issue
Dominant language
C++
Stars
373
Forks
93
Avg merge
7d 21h
Merged PRs (30d)
7

Description

### Describe the bug, including details regarding any error messages, version, and platform.

In c++ or spark unit test, we usually creating the graphar data to `/tmp` dir and may check the generated file num with an `assert`. But the c++ and spark unit test may generate useless files for each other and make the assertion failed.

I suggest we can clean the output directory before write out the files in unit test of c++ and spark.

### Solution

As Sem suggested, we can making the clean operation as a part of the top-level `make clean` of C++/Spark library.

### Component(s)

C++, Spark

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.