Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

File names for test scripts are inconsistent (W) #210

Open

Description

@afig

There is an inconsistency on whether test scripts have "add" in their filenames. I would advise that they do not, since the tests are testing the feature's behavior, not necessarily the successful addition of the feature. Additionally, the naming of runAllPrivilegeTests.psql is not consistent with other scripts, something like testPrivileges.psql may be more appropriate. Likewise, the associated README should be renamed. If the privilege test suite is renamed to testPrivileges.psql then the README should be renamed to testPrivilegesREADME.txt.

There are other issues related to the structure and behavior of test files, including #207, but they do not have to be addressed in M3.

Current directory structure of the /tests directory:

├── importStudents
│   ├── README.md
│   └── testBannerRoster.csv
├── privileges
│   ├── 0_setup.sql
│   ├── 1_instructorPass.sql
│   ├── 2_studentPass.sql
│   ├── 3_dbmanagerPass.sql
│   ├── 4_instructorPass2.sql
│   ├── 5_instructorFail.sql
│   ├── 6_studentFail.sql
│   ├── 7_dbmanagerFail.sql
│   ├── 8_cleanup.sql
│   ├── runAllPrivilegeTests.psql
│   └── testPrivilegesREADME.txt
├── testAddConnectionActivityLoggingCleanup.sql
├── testAddConnectionActivityLogging.psql
├── testAddDDLActivityLogging.sql
├── testClassDBRolesMgmt.sql
├── testHelpers.sql
├── testRoleBaseMgmt.sql
└── testUserMgmt.sql

Activity

  1. added this to the M3 (V 2.x) milestone on Jun 6, 2018
  2. smurthys commented on Jun 7, 2018

    @smurthys
    Member

    I agree with the issue description. I feel a lone README file in any directory can just be called README.

    I believe the issue of the "add" prefix has been discussed previously and thus some test scripts do not have that prefix.

  3. wildtayne commented on Jun 7, 2018

    @wildtayne
    Contributor

    I also agree with @afig's analysis on test script names. Renaming any lone README to README also has the advantage of displaying in the README view below the file list on GitHub.

  4. removed this from the M3 (V 2.1) milestone on Jun 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions