Coder Social home page Coder Social logo

Provide a test runner about deno_std HOT 6 CLOSED

denoland avatar denoland commented on May 2, 2024
Provide a test runner

from deno_std.

Comments (6)

hayd avatar hayd commented on May 2, 2024 3

Yes, this will be cli only, at least initially. It will import from filenames that match /(.+_)?test\.ts$/ but could later take a glob as an arg. It also will --grep on test name if passed (only run matching tests). More features could be added in the future...

from deno_std.

bartlomieju avatar bartlomieju commented on May 2, 2024 3

FYI I'm working on it

from deno_std.

jbreckmckye avatar jbreckmckye commented on May 2, 2024 2

An inbuilt test runner is not a bad idea. But at this stage I probably wouldn't write / consume any config files. That seems a second-order priority to getting parallelisation and file watching going. Besides, convention > configuration.

from deno_std.

hayd avatar hayd commented on May 2, 2024

I have an implementation for this, but am waiting on import() to be supported in deno.
(It was in ~0.2.8 and the test runner was working.)

Note: After #192 walking is easy, and if we wanted to support glob as a cli we could move https://github.com/hayd/deno-globrex over to std (or port something else).

from deno_std.

j-f1 avatar j-f1 commented on May 2, 2024

Besides, convention > configuration.

Especially while Deno is still new and it’s possible to get everyone to follow the convention.

from deno_std.

jamesseanwright avatar jamesseanwright commented on May 2, 2024

I also agree that convention > configuration, so I'll support you in following the _test suffix.

from deno_std.

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.