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

Setup Effective Testing #15

Open
brettforbes opened this issue Apr 7, 2023 · 0 comments
Open

Setup Effective Testing #15

brettforbes opened this issue Apr 7, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@brettforbes
Copy link
Collaborator

brettforbes commented Apr 7, 2023

Assuming Issue #6 is fixed then build an effective test Regime

Testing Regime
We need to develop a rational series of tests, which use your code for four or five different cases:

  1. Load all files in the directory and check that the number of id's in the database, matches the number of distinct id's in the directory. Use the data/standards, data/examples and data/mitre/load directories
  2. Load all the files in the directory, get all of the objects in the database, and prove that exported objects are equivalent to the imported ones, ignoring list order. Use the data/standards, data/examples and data/mitre/load directories. Load the files one by one and it will check whether you can deal with two errors conditions: A. Where the objects i already loaded, and B. Where the dependency is not in the file but is already loaded
  3. Load all the files in the directory, and delete all of the objects in the database. Prove that all objects were loaded, and then deleted with no attributes hanging around that are not attached to the four marking objects.
  4. Load the two network files in the data/standards/issues files and check that you can load files with circular references, that they can be exported and the objects are identical and they can be deleted
  5. Develop a test where there is a missing dependency that is not loaded. Check that no objects are loaded, or if they are they are deleted. Check that an appropriate error message is provide including the list of ids of the dependencies that are not available
@brettforbes brettforbes added the enhancement New feature or request label Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants