Skip to content

pgtap directory & file names #118

@cvvergara

Description

@cvvergara

The structure is getting obsolete as in the directories there are many functions within a directory also file names using dash instead of underscore.

directory structure

Current structure

pgtap/theLongNameDir/

which makes the need to have as prefix the name of the function on the test files for example :

ls pgtap/theLongNameDir/
theVeryLongNameBarFunction_edge_cases.sql
...
theVeryLongNameFooFunction_edge_cases.sql
...

The "not yet written" to be standard about the directory structure

Subdivide the directory with the functions and the need of prefixing the file names is gone as the prefix is on the subdirectory name

pgtap/theLongNameDir/function

Following the example above:
the directory pgtap/theLongNameDir would have 2 subdirectories:

ls pgtap/theLongNameDir/
theVeryLongNameBarFunction
theVeryLongNameFooFunction

So the files mentioned in the example:

pgtap/theLongNameDir/theVeryLongNameFooFunction/edge_cases.sql
pgtap/theLongNameDir/theVeryLongNameBarFunction/edge_cases.sql

File names

If a files use dash to separate words for example:

edge-cases.sql

The dash sometimes generates problems when using scripts as the options for commands use a dash.
To avoid those problems, use an underscore:

edge_cases.sql

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions