From issues-return-93167-archive-asf-public=cust-asf.ponee.io@cordova.apache.org Fri Mar 2 15:23:06 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 4F9DE18062F for ; Fri, 2 Mar 2018 15:23:06 +0100 (CET) Received: (qmail 3597 invoked by uid 500); 2 Mar 2018 14:23:03 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 3487 invoked by uid 99); 2 Mar 2018 14:23:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2018 14:23:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 9C65418053B for ; Fri, 2 Mar 2018 14:23:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.311 X-Spam-Level: X-Spam-Status: No, score=-110.311 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 9NiXDzDkYgNy for ; Fri, 2 Mar 2018 14:23:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 00CAC5F39F for ; Fri, 2 Mar 2018 14:23:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 690E1E021B for ; Fri, 2 Mar 2018 14:23:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 22F7F24770 for ; Fri, 2 Mar 2018 14:23:00 +0000 (UTC) Date: Fri, 2 Mar 2018 14:23:00 +0000 (UTC) From: "Jan Piotrowski (Sujan) (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-13945) `npm test` still relevant? MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-13945?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D163836= 25#comment-16383625 ]=20 Jan Piotrowski (Sujan) commented on CB-13945: --------------------------------------------- [~dblotsky], do you know any about that? > `npm test` still relevant? > -------------------------- > > Key: CB-13945 > URL: https://issues.apache.org/jira/browse/CB-13945 > Project: Apache Cordova > Issue Type: Task > Components: cordova-docs > Reporter: Jan Piotrowski (Sujan) > Priority: Major > > There are some tests in cordova-docs which can be run with `npm test`, de= scribed here: https://github.com/apache/cordova-docs/blob/master/doc/testin= g-the-website.md=20 > {code} > C:\Projects\Cordova\cordova-docs (janpio-random_docs_stuff -> origin) (co= rdova-website@0.0.1) > =CE=BB npm test > > cordova-website@0.0.1 test C:\Projects\Cordova\cordova-docs > > npm run eslint && npm run mocha > > cordova-website@0.0.1 eslint C:\Projects\Cordova\cordova-docs > > eslint tools/lib tools/spec > > cordova-website@0.0.1 mocha C:\Projects\Cordova\cordova-docs > > mocha --recursive tools/spec > (node:11372) [DEP0006] DeprecationWarning: child_process: options.customF= ds option is deprecated. Use options.stdio instead. > AddTitle > =E2=88=9A should set the title > =E2=88=9A should skip files with no source title > =E2=88=9A should skip files with no target title > Prettify > =E2=88=9A should find some code blocks > =E2=88=9A should add the prettyprint class to each code block > TableOfContents > =E2=88=9A should find the table of content values > =E2=88=9A should find all

elements > =E2=88=9A should find all

elements > =E2=88=9A should ignore whitespace in the target name > =E2=88=9A should create a HTML select element > =E2=88=9A should skip files with no source title > =E2=88=9A should skip files with no target title > UpdateIndex > =E2=88=9A should skip all files but index.md.html > =E2=88=9A should rename the title > =E2=88=9A should rename the file > UpdateKeywordIndex > =E2=88=9A should skip all files but _index.html > =E2=88=9A should rename the title > =E2=88=9A should rename the h1 (66ms) > =E2=88=9A should remove the
> =E2=88=9A should update references from index.md.html to index.html > YamlFrontMatter > =E2=88=9A should skip files with no YAML Front Matter > =E2=88=9A should parse files with YAML Front Matter > FileHelpers > - should have a default input directory that exists > 22 passing (901ms) > 1 pending > {code} > If you follow the trail, this seems to run the tests in `tools/spec/cordo= va`. Looking into the actual spec files, it seems to test functionality in = these files: > - /lib/cordova/post/addtitle > - /lib/cordova/post/prettify > - /lib/cordova/post/tableofcontents > - /lib/cordova/post/updateindex > - /lib/cordova/post/updatekeywordindex > - /lib/cordova/pre/yamlfrontmatter > Is the code being tested here actually still relevant for the current sta= te of the docs? -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org