Ctrl + click test results.
This can be used to make tests for/before making pull requests to
a data conversion tool repository. Download zip or clone the repo
locally. Edit the "config-variables.sh" file to run test.
It is recommended that you at least have an intermediate knowledge of
the following before using this repository to build your test:
- bash scripting
- Makefile
- Data conversion tool being tested
IMPORTANT:
This is not specific to any current repositroy. The current
"config-variables.sh" contents is for example purposes. So it
is important that you edit the "config-variables.sh" file
before running test.
IMPORTANT:
There are no safe guards if you make full
test and use repos with
large amounts of data so be mindful of possible build sizes for test.
- Make repo based on this template repo.
- Either
- Upload test files that will be converted to data/quick-test directories.
- gen - general files tested
- unq - any unique or focus files tested
- Use a ready made config for a command previously tested. Use pre-config below:
make roffit
make asciidoctor
- Upload test files that will be converted to data/quick-test directories.
- Read and agree to terms in USAGE_AGREEMENT.md. Either:
cat USAGE_AGREEMENT.md
- Click link to file
- Change variables in "config-variables.sh".
- See commented instructions in the file.
- IMPORTANT - the function
_commandSyntax
uses variables defined in main script that are passed as arguments to function. Use the pre-configurred examples in the function as a guide to to arrange the syntax for the test. - IMPORTANT - if more than three elements are needed to run the command for test, then edit the main script file "data-test".
- Ensure necessary dependencies are installed for test.
- Run either:
make quick
make full
- Run a local host and open in browser to view test results.
- Additionally to clean to reset repo:
make clean
make retest
- Make repo based on this template repo.
- Either
- Upload test files that will be converted to data/quick-test directories.
- gen - general files tested
- unq - any unique or focus files tested
- Use a ready made config for a command previously tested. Use pre-config below:
make roffit
make asciidoctor
- Upload test files that will be converted to data/quick-test directories.
- After naming new repo open it in codespace.
- Read and agree to terms in USAGE_AGREEMENT.md. Either:
cat USAGE_AGREEMENT.md
- Click link to file
- Change variables in "config-variables.sh".
- See commented instructions in the file.
- IMPORTANT - the function
_commandSyntax
uses variables defined in main script that are passed as arguments to function. Use the pre-configurred examples in the function as a guide to to arrange the syntax for the test. - IMPORTANT - if more than three elements are needed to run the command for test, then edit the main script file "data-test".
- Install necessary dependencies
- Copy paste below line:
chmod a+x Makefile agree config-variables.sh data-test extract-full-data.sh server.js
- Run either:
make quick
make full
- Run server with:
node server.js
- Or use Github pages environment
- Create a new repo by:
-
CHANGE
- Additionally to clean to reset repo:
-make clean
-make retest
- If final test repo is uploaded to Github:
- To see outputs from test there will be a link generated and included at the top of the new README.md file.
- If final test remains local use method for localhost:
- For example -
php -S localhost:8000
- For example -
- Once the test has completed a new README.md file will be genereated, which gives a brief overview of the test procedure.
- The README.md that was used in the original template repository will be copied to INSTRUCTIONS.md