Skip to content

Commit 3554598

Browse files
committed
Working on README revamp.
1 parent 42ba5d0 commit 3554598

File tree

1 file changed

+38
-35
lines changed

1 file changed

+38
-35
lines changed

README.md

Lines changed: 38 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,40 @@ refer to the Ximera manual, which explains things in more detail and in a more u
77

88
* **This Repo (will eventually be) structured as follows...**
99

10-
- masterTestFolder
10+
- depreciated (for content that is being removed in a future release, see README in folder)
1111
- (DTXFileName)Test.tex files (e.g. problemTest.tex)
1212
- testFiles
13-
- (Command/Env) folder; a folder for each testable command/enviroment/etc. (e.g. ''problem'' folder)
14-
- base.tex file (basic usage implementation/info)
15-
- (Additional Testing Feature).tex (e.g. nesting.tex or numbering.tex in the problem folder)
16-
- testGroups
17-
- (Group By Type) folder. (e.g. ''environments'' or ''authorTools'' folders)
18-
- Each folder contains a test xourse that loads the relevant activities from the testFile folder.
19-
- untestedDTX
20-
- depreciated folder
21-
- (dtxFileName)Test.tex files for dtx files that contain only content that
22-
will be removed in a future release of ximera (e.g. gradedTest.tex)
23-
- hardCoded folder
24-
- (dtxFileName)Test.tex files for the dtx files with no testable elements (e.g. banner.dtx)
25-
13+
-compositeTestFiles (for tests of interactions between different dtx file contents, see README in folder.)
14+
-subfolder named to explain composite testing case.
15+
-dtxTestFiles (for individual dtx file testbeds, see README in folder.)
16+
- (Command/Env) folder; a folder for each testable command/enviroment/etc. (e.g. ''problem'' folder)
17+
- base.tex file (basic usage implementation/info)
18+
- (Additional Testing Feature).tex (e.g. nesting.tex or numbering.tex in the problem folder)
19+
- testXourses (xourse files to lode relevant test files, see README in folder)
20+
- compositeTestXourses (xourses for testing interactions between different dtx files)
21+
- dtxTestXourses (xourses for testing individual dtx file contents)
22+
- (dtxFileName)Test.tex is the xourse that tests (dtxFileName) dtx file.
23+
- Includes hard coded non-tested content so it is easy to verify all non-depreciated dtx has been parsed.
2624

2725
* **testFiles Folder at a glance**
2826
The testFiles folder is the folder that contains all the actual test ximera document class files
29-
that are loaded and used for demo/testing. Files in this folder should adhere to a specific naming
30-
scheme, and should only need minor editing once they have been finalized as testing bed files
31-
although more files will be added as we do more development.
32-
(More on this below).
33-
34-
* **masterTestFolder Folder at a glance**
35-
The masterTestFolder is the location of all the xourse files that represent tests for each of the
36-
possible (individual) areas for testing - e.g. ''problem'' type environments or ''maketitle'' command.
37-
Again, these all adhere to a specific naming scheme and should not need to be edited once they have
38-
been verified as valid testbed files until/unless more content is added to its category.
39-
(Again, more on this below).
40-
27+
that are loaded and used for demo/testing. There are two subfolders in this folder.
28+
1) The dtxTestFiles are the files that test individual dtx files to verify the integrity of all
29+
the elements within that specific dtx file.
30+
2) The compositeTestFiles subfolder is for files that test the integrity of elements that span
31+
and/or interact between different dtx files.
32+
33+
* **testXourses Folder at a glance**
34+
The testXourses is the location of all the xourse files. There are two subfolders;
35+
1) The first subfolder is the dtxTestXourses subfolder. It is a subfolder for xourses that are
36+
tests for each of the dtx files, these xourses should load all the relevant test files to verify
37+
the functionality of all the elements that are touched by that dtx file.
38+
2) The other subfolder is the compositeTestXourses folder, which are xourses that load all the relevant
39+
tests to verify the integrity of how elements in different dtx files interact with each other. These
40+
should load each of the relevant test files in the corresponding compositeTestFiles subfolder
41+
of the testFiles folder.
42+
43+
<!--
4144
* **testGroupings Folder at a glance**
4245
Finally, the testGroupings folder should contain a list of folders that represent ''types'' of
4346
content that may need to be verified or tested - e.g. ''environments'', ''answerables'' or ''authorship tools''.
@@ -50,25 +53,25 @@ that might need testing (e.g. ''student interactions'', ''page credit generating
5053
* **Important Note About Test Groupings**
5154
To ensure all tests stay up to date in the relevant testGroupings (and to avoid version mismatch and general confusion)
5255
the files inside the testGroups should only be xourses that load the test files from the testFiles folder, not new
53-
test files. To submit a new test file, see the section on ``Creating a New Test File``.
56+
test files. To submit a new test file, see the section on ``Creating a New Test File``. -->
5457

5558

5659
# Naming Schemes
5760

58-
* **Each test xourse in the masterTestFolder is named after a dtx file.**
61+
* **Each test xourse in the testXourses/dtxTestXourses is named after a dtx file.**
5962
Since all development work must be implemented via dtx file (as per CTAN standards) and most development work
6063
tends to involve only a few dtx files (usually just one or two), it is often easiest to test the new code by testing
6164
everything that is implemented by the newly changed dtx code. This testing bed makes that easy to accomplish by merely
62-
pulling up the master test folder and loading the one or two test bed xourses that correspond to your changed dtx file.
65+
pulling up the relevant dtxTestXourse(s) and loading thetest bed xourse(s) that correspond to your changed dtx file.
6366
These in turn load all the relevant testFiles that correspond to the individual elements implemented by that dtx file
6467
i.e. each command/environment (or reasonably obvious groupings, like all ``\newtheorem`` generated environments are
6568
in the same place) has its own testing tile, making it relatively easy to investigate updated content, even inside a given dtx.
66-
Thus **Each test xourse should be named (dtxFileName)Test.tex** e.g. ''abstractTest.tex'' for the ''abstract.dtx'' file.
69+
Thus **Each dtxTestXourse should be named (dtxFileName)Test.tex** e.g. ''abstractTest.tex'' for the ''abstract.dtx'' file.
6770

68-
* **Each tested command/env/etc has a folder in the testFiles folder**
69-
Each command/environment/etc that has a test file will have a folder with that command/environment/etc name
70-
(e.g. ''problem'' folder or '' link'' folder in the testFiles folder). In that folder will be a basic usage/test file
71-
called ''base.tex'' that tests/demos the most basic implementation of whatever is being tested.
71+
* **Each tested command/env/etc has a file in the relevant (subfolder) of the dtxTestFiles Folder**
72+
Each command/environment/etc (referred to as ``element``) that is implemented in a dtx should have its own testFile
73+
in that dtxTestFiles subfolder, named after the relevant element. This should demo/test the most basic form of the
74+
element.
7275
However, often there are a number of options, or other elements for whatever is being tested that also need a demo/test.
7376
We don't want to have a single test file that contains all the various complexities of these things,
7477
as it becomes difficult to see what aspect ended up generating issues (if there are issues from testing).
@@ -97,7 +100,7 @@ each is a ximera documentclass that is demoing/testing the basic implementation,
97100
and numbering scheme respectivvely. These are in turn loaded by the
98101
''problemTest.tex'' file, which is the xourse documentclass that loads the content generated in the problem.dtx file.
99102
So just the ''problem'' related files would be in the structure as follows:
100-
- masterTestFolder
103+
- testXourses
101104
- problemTest.tex
102105
- testFiles
103106
- problem

0 commit comments

Comments
 (0)