![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Console Test Runner: writes to stdin, reads stdout.
tests.js is useful for test-driven development of command-line utilities. Works on Mac OS X, Windows and Linux so you can write cross-platform tests. Tests do not depend on the implementation language of the program.
You will need Node.js and NPM. Install using the following command.
$ npm install -g tests
Then create some .test
files and execute the following command in the folder
with tests.
$ tests
Test files should have the following structure.
first line—command to execute (can be relative path, can contain pipeline of several commands),
then <<<
and input to send to the program (can be multiple lines),
then >>>
and expected output.
wc
<<<
one two three
>>>
1 3 14
This test executes wc
command, sends string one two three
to its stdin and
checks the output of the program.
When the test is run you should see something like
✓ /path/to/tests/wc.test: 9ms
✔ 1 test complete (9ms)
To compare program’s output with expected output not as literal strings but as
JSON objects write >>>JSON
in the test file instead of >>>
.
For more examples see https://github.com/sheremetyev/texts.js/tree/master/test.
The idea was borrowed from John MacFarlane’s tests format in Pandoc2.
FAQs
Console test runner - writes to stdin, reads stdout
The npm package tests receives a total of 569 weekly downloads. As such, tests popularity was classified as not popular.
We found that tests demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.