Giter Club home page Giter Club logo

Comments (11)

badumont avatar badumont commented on September 23, 2024

from citeproc.

denismaier avatar denismaier commented on September 23, 2024

Thanks. I'll have a look into this. That looks pretty useful. I actually wanted to build something similar using shelltestrunner, but I'm on Windows and my Haskell installation refuses to compile it...

Anyway, I'm still thinking this could be something for citeproc to provide natively, given that it already supports citeproc-js's test format.

from citeproc.

denismaier avatar denismaier commented on September 23, 2024

Note that I am not very satisfied with the test file being in HTML, for it requires to track the changes in the HTML writer and to update the test file accordingly. Using a combination of an HTML file for visualizing the result and native or json output for testing may be better.

I've now built a simple python script for this. It tests against the output of markdown-citations.

from citeproc.

jgm avatar jgm commented on September 23, 2024

That seems an appropriate solution -- should we close this?

from citeproc.

denismaier avatar denismaier commented on September 23, 2024

We could. But maybe you have a better idea how this could be supported?

from citeproc.

jgm avatar jgm commented on September 23, 2024

No, but I probably don't quite understand what you're trying to do. In any case, it doesn't sound like the kind of thing that should be built into this library.

from citeproc.

denismaier avatar denismaier commented on September 23, 2024

The idea would be similar to what https://github.com/cormacrelf/jest-csl and https://github.com/juris-m/citeproc-test-runner provide. You can define test cases for a given style and test whether the style conforms to the tests. So, when developping styles you always know if your style is already or not. And it you make changes, you can always be sure that you don't break things.

If you think this is out of scope, we can close the issue, I was thinking it might already be possible to run the processor against a test suite given that this library already supports the format defined in the test-suite.

from citeproc.

jgm avatar jgm commented on September 23, 2024

This should be quite easy already using the citeproc executable and a little shell scripting. See its man page.

from citeproc.

denismaier avatar denismaier commented on September 23, 2024

Ok. Sounds reasonable. I'll have a look.

from citeproc.

denismaier avatar denismaier commented on September 23, 2024

How can you build the library as an executable? The readme says I should build it with the executable flag. But how?

from citeproc.

denismaier avatar denismaier commented on September 23, 2024

Found it:

stack build --flag citeproc:executable

from citeproc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.