taskrjs / fly-ava Goto Github PK
View Code? Open in Web Editor NEW:airplane: A plugin for Fly that run ava tests
Home Page: https://www.npmjs.com/package/fly-ava
License: MIT License
:airplane: A plugin for Fly that run ava tests
Home Page: https://www.npmjs.com/package/fly-ava
License: MIT License
Hi @lukeed.
Congratulations on flyjs new generation ๐
Should I rename it to taskr-ava, or change to official package?
I have not understood much yet.
Thank you.
I'm using fly-ava to run my AVA tests in my project. I found normal console.log()
is not outputting log in terminal, while directly running ./node_modules/ava/cli.js
outputs log.
The actual situation is, my PEG.js parser's trace output, is not shown via fly-ava. It uses console.log()
, too. I have to run AVA separately to debug my PEG grammar. It's very painful to debug grammar without trace information.
Is there any idea to make log enabled?
Let's say we have such a flyfile.js
exports.foo = function* foo (fly) {
yield fly.source('./src/index.js').target('build/index.js')
}
exports.test = function* test (fly) {
yield fly.start('foo')
yield fly.source('./test/index.js').ava() // error
}
exports.test_another = function* test_another (fly) {
yield fly.source('./src/index.js').target('build/index.js')
yield fly.source('./test/index.js').ava() // works
}
./src/index.js
is just a blank file.
./test/index.js
is a regular AVA test file:
import test from 'ava'
test('foo', t => {
t.pass()
})
Fly will fail test
task with error: test failed because No tests found in src/index.js, make sure to import "ava" at the top of your test file
. Even I just source('./test/index.js') to AVA.
But task_another
runs well.
I'm not sure if this is an fly issue.
We've introduced a programmatic API. It's still not documented, as we want to be free to change it around, but would be nice to get some real world use of it.
You could look at how avajs/ava#345 gets implemented.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.