Open gallardo opened 5 years ago
After several hours fiddling with the tools and config, I found what I was looking for: I only need to locally test some details of the APA style. Below are the instructions I miss. I could file a PR, but I guess @fbennett prefers to update the doc himself?
my-style
$ git clone https://github.com/my-github-name/jm-style-tests.git
$ cd jm-style-tests
$ mkdir my-style
$ cp apa/style_test001.txt my-style/style_test001.txt
INPUT
section with the content of your previously created collections of items in CSL format~/.cslrun.yaml
to point to the jm-style-test
dir
groupID: 2319948
path:
styletests: /path/to/jm-style-tests/
Invoke cslrun
to adopt the current style output as the RESULT and accept with y
$ cslrun -w /path/to/my-style.csl -s style_test001
Using processor from package
Watching: /path/to/my-style.csl
Validating CSL.
Testing CSL.
-------------------------------------------------------
⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅✈
-------------------------------------------------------
0 passing (388ms)
1 failing
1) Integration tests
should pass test style_test001 style_test001:
AssertionError: /path/to/jm-style-tests/my-style/style_test001.txt
+ expected - actual
[...]
Adopt this output as correct test RESULT? (y/n)
- Edit the `RESULT` section of the modified test `my-style/style_test001.txt` to your like and retest
$ cslrun -w /path/to/my-style.csl -s style_test001
## Notes
You can execute the single test `style_test001.txt` for your `my-style`:
$ cslrun -w /path/to/my-style.csl -s style_test001
Or all tests `style_*.txt`:
$ cslrun -w /path/to/my-style.csl -g style
Invoking `cslrun` with all tests (`-a`) requires correct configuration of parameters `local` and `std` in `~/.cslrun.yaml`
Many thanks for this, and apologies for not responding sooner. I had started on a revision, but your rev is more likely to be cprehensive. Just woke up here, will review today and get back if I have any questions.
No reasons to apologize. Thanks for your great job, and I'm glad if this helps.
I'm trying to build some test for one style that I have renamed. I cannot make sense of this quote:
What I've done:
1.Cloned https://github.com/citation-style-language/styles.git, created copy of
apa.csl
asapa-test.csl
2.Editedapa-test.csl
to rename itsid
tohttp://www.zotero.org/styles/apa-test
3.Forked and cloned https://github.com/Juris-M/jm-style-tests as per instructions 4.Edited~/.cslrun.yaml
as per instructions 5.Changed working dir into the clonedjm-style-test
6.Run cslrun:7.Tried copying
jm-style-tests/apa
intojm-style-tests/apa-test
doesn't make any difference