Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/avajs/ava
Node.js test runner that lets you develop with confidence 🚀
https://github.com/avajs/ava
941c42e562988a1522cd5b27c430b80936bc679e authored almost 8 years ago
* Make the Runner manage the snapshot state. Thread an accessor to the
`t.snapshot()` assertion....
* Don't mix option chain with the prototype, simply expose it on the
instance. Actual code only ...
f23c17d02b64ba985c2a2231c0687ba9f94815d8 authored almost 8 years ago
The formatted labels sometimes assume the context of the error message.
And, since formatted val...
9e91016122e964c633846e6f9d3e993a7098050f authored almost 8 years ago
2d68282f0fa228327090ff31144b0f81d781212d authored almost 8 years ago
If the source is known through other means it doesn't have to be derived
from the assertion erro...
Show instructions on how to use `t.throws()` with the test results,
without writing them to stde...
Fixes #1321
2a206311d708361b294a21aa4c5bd199936d0824 authored almost 8 years ago3a44b75156c3fb8b1f20b213d4f0c86748534618 authored almost 8 years ago
* Do away with underscore prefixes. They were used inconsistently, and
are generally not worth i...
There are too many parameters.
e81d3f2818420b0e23b53679e0124906a191aafc authored almost 8 years ago
If a pending assertion fails before the test implementation returns a
rejected promise, the asse...
If the assertion fails, the AssertionError no longer has access to the
stack of when the asserti...
Don't make the duration comparison so precise, since timers may fire
early.
Rather than keeping an infinite timer open, waiting for `t.end()` to be
called, fail the callbac...
3a4553cf28607a7ee869b5906c69d3efcca4c638 authored almost 8 years ago
Though currently this error is likely to get lost unless there is a
pending assertion or `test.c...
Test results are emitted directly, so Test#run() only needs to return a
(promise for) a boolean,...
There's no need to collect all results. Tests emit them directly.
88955027dc87d6a400e9f8f40aa63658b5948345 authored almost 8 years agoSimplify Runner by passing options to TestCollection.
a4fecd580b5b5db00bc0f98dc71720303665aa90 authored almost 8 years ago
Asynchronous `t.throws()` / `t.notThrows()` was the only case where
internal AssertionErrors wer...
* Clarify responsibilities
* Consistently import dependencies
* Clarify significance of `expor...
df5432427210eeb167bea132bf0f3d2884c7ef25 authored almost 8 years agof25935ec94d1a915bc13b728ccd34abc4d87a668 authored almost 8 years ago
689ea16e79d335b713629ff79b69629b16687bb2 authored almost 8 years ago
3da8603b87ae43a77f581738233ea98c3de5a10f authored almost 8 years ago
At best it saves one stack level, but AVA code is already filtered out
of the stacks, so this is...
e5108a22bf9266ed698587c4c3244b9d5dac34db authored almost 8 years ago
Format statements, generate diffs and otherwise format values when
AssertionErrors are created. ...
Only print the first level. For arrays/maps/objects/sets this means the
indexes/keys are printed...
f06298179a21cf74827f14667a97d2bceb798299 authored almost 8 years ago
bb5a0dee10020b93548a2fee90aac87e9e7534a0 authored almost 8 years ago
1be456d103bc73e0a4a89835f8342916e8247f59 authored almost 8 years ago
6eae738e0f26d42fb74a0b7cc556e3ebf2fa105d authored almost 8 years ago
50ad21372c3c165192a8673007ede7098a01e988 authored almost 8 years ago
* Use our own AssertionError class. Now we can track the assertion
rather than abusing the opera...
This is especially useful for `t.notThrows()`, which includes the
thrown exception as the `actua...
Wrap callback errors, rejected promises or synchronously thrown values
in an `AssertionError`. R...
* Retain non-standard error properties in a cleaned `object` property
* Make AssertionError ser...
0b9de332164d6a63b6d7f6de1051a17261cd41e7 authored almost 8 years agoc3e094081ba97f658ea24bf0ac182e1f4d5bb7f9 authored almost 8 years ago
Avoid having to normalize errors in `run-status.js`.
22fb2dfda8f48790bf4130f25615c8610aef18a4 authored almost 8 years agoThis matches the terminology used in the README.
3aeb8b019ef6bb7753be36ababef563e8ae4cfc2 authored almost 8 years ago0b11db7741bf02839648450c2ceeef9b956fbe26 authored almost 8 years ago
It's undocumented and unused.
d1bebf4b3ea532acc8e2bf882e88f8cfe1f19594 authored almost 8 years ago366588bffc4be39bd87032b5dee8e99bf1d90deb authored almost 8 years ago
1ad347c53c4618bca7c9a01e637441aeb5db5168 authored almost 8 years ago
a49f66b59f757f25e7a21b3770ba56bbe7f3b055 authored almost 8 years ago
* Properly dump errors
* Only print actual and expected values if they're present, and strings....
157ef25aff0bae7145a6133928d2bdd0da853a78 authored almost 8 years ago
7a6b3c15b837a386f38ac3c5ba8e37acf30acaa4 authored almost 8 years ago
* package-hash@^2
* Allow precompiler setup to be asynchronous
* Consistently refer to bab...
0464b14527a7a5be805a79eff7e5c862693663c0 authored almost 8 years ago`diff` is really slow for large strings
bd5ed603356f7a038fed62f64494b35598741d67 authored almost 8 years ago9f2ff0942cb4b7404f46ce3a7fee88ae686f2dbe authored almost 8 years ago
Node.js 7.6.0 supports async / await so the test doesn't throw an
exception. Use the unsupported...
767c3f8e2c5d66613ae7dc4ef781ce3407c0b39b authored almost 8 years ago
98dded553c8c213739cea9743ab4662f40d3125a authored almost 8 years ago
`flow check` is easily taking 30 seconds on my development machine,
presumably it's checking to...
d47c5c80ae73c303c6e3b6dd8e1d2e0f3722bd74 authored almost 8 years ago
Fixes #1233. Our assertions don't call toJSON(), so we shouldn't use
it either when displaying a...
795f097c0befef5c1bb3f80485062827676a93e0 authored almost 8 years ago
* Ensure Test#run() returns exit promise
This allows errors from the exit logic to propagate ...
9cea60d98fe431af80ef1f90ce59849e1cd46a68 authored almost 8 years ago* Resolve absolute source file path when serializing errors
Fixes #1270.
* Bail excerpting...
f3b60f418da29c81d03e00259b5a7a4d4e30d327 authored almost 8 years agoWe no longer rewrite paths. Mentioning future uses seems unnecessary. What's left is implicitly ...
3d75834a3af1fbccf2056d94fc68788faec29cac authored almost 8 years ago8d6f9bc2e2ed02b39e32cdf2b952b680c3b19338 authored almost 8 years ago
The watcher would break if logger.finish() threw an exception. Instead
rethrow this error (which...
da68f2941b76c0400bc806bde39dc41d690a1818 authored almost 8 years ago
* Remove double space in generated API test titles
* Improve test management in API tests
...
2c683b9e2be5e484e2bf9c1487316ccc232684f4 authored almost 8 years agoThis makes it easier to inspect the code coverage during development.
8a8669c7f89b813cd945fb4ced044d06ec534f75 authored almost 8 years ago
Stub process.stderr.write(), rather than just spying on it. Otherwise
'resultresult' gets writt...
We're ending up compiling all helper-like files in AVA's test/
directory, which is unnecessary.
* Rename pkgDir to projectDir: this better communicates it's the
directory of the user's projec...
73394f155a04af0c40045c51f49c47dbdd5894f7 authored about 8 years ago
45fec330cb1fc117d848efe08fc0359814ce70a8 authored about 8 years ago
93417201725abc6e6a1af954666cfd339889dfb0 authored about 8 years ago
Closes #1003.
fa9abecad516b56391070c6324dc01110833da9f authored about 8 years ago2dc47532543a7d5ef8b86b48396b7f53d20963a3 authored about 8 years ago
5c4c2707a95ff8b5027f84a2f323c6f3082e7213 authored about 8 years ago
Closes #1224.
This adds flow-bin, adds it to the test running script, and adds some regressio...
80ed08032438fa1400ac723fcc74bdc447a21750 authored about 8 years ago6a8ed2c3c16ee023975d7bc335b81f61cd306cc7 authored about 8 years ago
b886c5b25ae54430f908c49f9932d8f998c41702 authored about 8 years ago
Instead of double-defining each of these, define them once while using overloading.
Also took...
518252f67aaa63221e0d49cb3f896c5bff054e68 authored about 8 years agodcdfbee689e1538420f5793bbaca09c7e78ddedd authored about 8 years ago
154215df51fb1fbe9f5f5ca2f76e00b46d30c7d3 authored about 8 years ago
2623c11ae285d3292037c92644495cc6e3d97b7c authored about 8 years ago
And some other tweaks
a45cdb9eb7e04097952b3a88b504e12d8885fbd3 authored about 8 years agoSeems like `String#repeat` does not like negative numbers.
c980f978cd70969cfbe1114d8e1ef4f1eb39def3 authored about 8 years agoFixes #937
34bebc450d7ee6fef99684a5a7c0aea67695b772 authored about 8 years agoNo longer needed.
ca016c09f2723921fc75857eae8113801f6957d4 authored about 8 years ago2m 35sec → 1m 14s
Went with 4 cores as that seemed the most optimal. I've experienced that numb...
751d2a8b7f08aee622785a834996ef3be93f2a08 authored about 8 years agob3eaf30eae15d6baf7a3c33c14bec326a29e983f authored about 8 years ago
aa1b8bb629a2396b08637b2ff1111cefb4d6b39d authored about 8 years ago
c9e6e6fafacad3f54536dc9122555e939d13aa21 authored about 8 years ago
9616dde582e5333c3528cdd217c37e5b41798c9a authored about 8 years ago
173da288adaba17bcc2ce88f76ddfcb8dfc1eb8f authored about 8 years ago
872d2edb938ab1104b304f25aa586833b9875030 authored about 8 years ago
Closes #1121.
2bdf72a06c8b1c691881423f09939cdd5ea83c5f authored about 8 years ago0606ff708fc24f868ad3280e984c8807f47533b7 authored about 8 years ago
83937bfc7262f70cc03be9e1265bc33fa034a249 authored about 8 years ago
is-ci moved the logic for detecting the CI server to the ci-info module, see https://github.com/...
82acc5951789d4b3eca44b934683c6167eba9ce2 authored about 8 years ago